mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 23:24:11 +08:00
Merge branch 'bnxt_en-DCBX-fixes'
Michael Chan says: ==================== bnxt_en: DCBX fixes. 2 bug fixes for the case where the NIC's firmware DCBX agent is enabled. With these fixes, we will return the proper information to lldpad. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
f917174caf
@ -7630,8 +7630,6 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||||||
dev->min_mtu = ETH_ZLEN;
|
dev->min_mtu = ETH_ZLEN;
|
||||||
dev->max_mtu = BNXT_MAX_MTU;
|
dev->max_mtu = BNXT_MAX_MTU;
|
||||||
|
|
||||||
bnxt_dcb_init(bp);
|
|
||||||
|
|
||||||
#ifdef CONFIG_BNXT_SRIOV
|
#ifdef CONFIG_BNXT_SRIOV
|
||||||
init_waitqueue_head(&bp->sriov_cfg_wait);
|
init_waitqueue_head(&bp->sriov_cfg_wait);
|
||||||
#endif
|
#endif
|
||||||
@ -7669,6 +7667,7 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||||||
bnxt_hwrm_func_qcfg(bp);
|
bnxt_hwrm_func_qcfg(bp);
|
||||||
bnxt_hwrm_port_led_qcaps(bp);
|
bnxt_hwrm_port_led_qcaps(bp);
|
||||||
bnxt_ethtool_init(bp);
|
bnxt_ethtool_init(bp);
|
||||||
|
bnxt_dcb_init(bp);
|
||||||
|
|
||||||
bnxt_set_rx_skb_mode(bp, false);
|
bnxt_set_rx_skb_mode(bp, false);
|
||||||
bnxt_set_tpa_flags(bp);
|
bnxt_set_tpa_flags(bp);
|
||||||
|
@ -553,8 +553,10 @@ static u8 bnxt_dcbnl_setdcbx(struct net_device *dev, u8 mode)
|
|||||||
if ((mode & DCB_CAP_DCBX_VER_CEE) || !(mode & DCB_CAP_DCBX_VER_IEEE))
|
if ((mode & DCB_CAP_DCBX_VER_CEE) || !(mode & DCB_CAP_DCBX_VER_IEEE))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
if ((mode & DCB_CAP_DCBX_HOST) && BNXT_VF(bp))
|
if (mode & DCB_CAP_DCBX_HOST) {
|
||||||
return 1;
|
if (BNXT_VF(bp) || (bp->flags & BNXT_FLAG_FW_LLDP_AGENT))
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (mode == bp->dcbx_cap)
|
if (mode == bp->dcbx_cap)
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user