bnx2x: update DCB data during PMF migration
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@conan.davemloft.net>
This commit is contained in:
parent
c9ee920624
commit
ef01854e24
|
@ -184,7 +184,7 @@ enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
void bnx2x_dcbx_set_params(struct bnx2x *bp, u32 state);
|
void bnx2x_dcbx_set_params(struct bnx2x *bp, u32 state);
|
||||||
|
void bnx2x_dcbx_pmf_update(struct bnx2x *bp);
|
||||||
/* DCB netlink */
|
/* DCB netlink */
|
||||||
#ifdef BCM_DCBNL
|
#ifdef BCM_DCBNL
|
||||||
extern const struct dcbnl_rtnl_ops bnx2x_dcbnl_ops;
|
extern const struct dcbnl_rtnl_ops bnx2x_dcbnl_ops;
|
||||||
|
|
|
@ -2477,6 +2477,8 @@ static void bnx2x_pmf_update(struct bnx2x *bp)
|
||||||
bp->port.pmf = 1;
|
bp->port.pmf = 1;
|
||||||
DP(NETIF_MSG_LINK, "pmf %d\n", bp->port.pmf);
|
DP(NETIF_MSG_LINK, "pmf %d\n", bp->port.pmf);
|
||||||
|
|
||||||
|
bnx2x_dcbx_pmf_update(bp);
|
||||||
|
|
||||||
/* enable nig attention */
|
/* enable nig attention */
|
||||||
val = (0xff0f | (1 << (BP_E1HVN(bp) + 4)));
|
val = (0xff0f | (1 << (BP_E1HVN(bp) + 4)));
|
||||||
if (bp->common.int_block == INT_BLOCK_HC) {
|
if (bp->common.int_block == INT_BLOCK_HC) {
|
||||||
|
|
Loading…
Reference in New Issue