bnx2x: dcb bit indices flags used as bits
DCB flags were updated using the flags' bit offsets instead of the actual bits. This is now fixed. Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
ab4a71392e
commit
e695a2dda1
@@ -1934,7 +1934,7 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (bp->port.pmf)
|
if (bp->port.pmf)
|
||||||
bnx2x_update_drv_flags(bp, DRV_FLAGS_DCB_CONFIGURED, 0);
|
bnx2x_update_drv_flags(bp, 1 << DRV_FLAGS_DCB_CONFIGURED, 0);
|
||||||
else
|
else
|
||||||
bnx2x__link_status_update(bp);
|
bnx2x__link_status_update(bp);
|
||||||
|
|
||||||
|
@@ -735,7 +735,9 @@ void bnx2x_dcbx_set_params(struct bnx2x *bp, u32 state)
|
|||||||
bp->dcbx_error);
|
bp->dcbx_error);
|
||||||
|
|
||||||
/* mark DCBX result for PMF migration */
|
/* mark DCBX result for PMF migration */
|
||||||
bnx2x_update_drv_flags(bp, DRV_FLAGS_DCB_CONFIGURED, 1);
|
bnx2x_update_drv_flags(bp,
|
||||||
|
1 << DRV_FLAGS_DCB_CONFIGURED,
|
||||||
|
1);
|
||||||
#ifdef BCM_DCBNL
|
#ifdef BCM_DCBNL
|
||||||
/*
|
/*
|
||||||
* Add new app tlvs to dcbnl
|
* Add new app tlvs to dcbnl
|
||||||
@@ -1020,7 +1022,7 @@ void bnx2x_dcbx_init(struct bnx2x *bp)
|
|||||||
DP(NETIF_MSG_LINK, "dcbx_lldp_params_offset 0x%x\n",
|
DP(NETIF_MSG_LINK, "dcbx_lldp_params_offset 0x%x\n",
|
||||||
dcbx_lldp_params_offset);
|
dcbx_lldp_params_offset);
|
||||||
|
|
||||||
bnx2x_update_drv_flags(bp, DRV_FLAGS_DCB_CONFIGURED, 0);
|
bnx2x_update_drv_flags(bp, 1 << DRV_FLAGS_DCB_CONFIGURED, 0);
|
||||||
|
|
||||||
if (SHMEM_LLDP_DCBX_PARAMS_NONE != dcbx_lldp_params_offset) {
|
if (SHMEM_LLDP_DCBX_PARAMS_NONE != dcbx_lldp_params_offset) {
|
||||||
bnx2x_dcbx_admin_mib_updated_params(bp,
|
bnx2x_dcbx_admin_mib_updated_params(bp,
|
||||||
@@ -1857,7 +1859,7 @@ void bnx2x_dcbx_pmf_update(struct bnx2x *bp)
|
|||||||
* read it from shmem and update bp and netdev accordingly
|
* read it from shmem and update bp and netdev accordingly
|
||||||
*/
|
*/
|
||||||
if (SHMEM2_HAS(bp, drv_flags) &&
|
if (SHMEM2_HAS(bp, drv_flags) &&
|
||||||
GET_FLAGS(SHMEM2_RD(bp, drv_flags), DRV_FLAGS_DCB_CONFIGURED)) {
|
GET_FLAGS(SHMEM2_RD(bp, drv_flags), 1 << DRV_FLAGS_DCB_CONFIGURED)) {
|
||||||
/* Read neg results if dcbx is in the FW */
|
/* Read neg results if dcbx is in the FW */
|
||||||
if (bnx2x_dcbx_read_shmem_neg_results(bp))
|
if (bnx2x_dcbx_read_shmem_neg_results(bp))
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user