bnx2x: update DCB data during PMF migration
authorDmitry Kravkov <dmitry@broadcom.com>
Tue, 14 Jun 2011 01:33:57 +0000 (01:33 +0000)
committerDavid S. Miller <davem@conan.davemloft.net>
Wed, 15 Jun 2011 14:56:56 +0000 (10:56 -0400)
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>
drivers/net/bnx2x/bnx2x_dcb.h
drivers/net/bnx2x/bnx2x_main.c

index 7887834cd65c2f0032d01ae573f8150bd714db05..b3a655ff2bac2a699adbd35b255048c27ce20960 100644 (file)
@@ -184,7 +184,7 @@ enum {
 };
 
 void bnx2x_dcbx_set_params(struct bnx2x *bp, u32 state);
-
+void bnx2x_dcbx_pmf_update(struct bnx2x *bp);
 /* DCB netlink */
 #ifdef BCM_DCBNL
 extern const struct dcbnl_rtnl_ops bnx2x_dcbnl_ops;
index 7ffb6e651e1647d8483adc842b3208ef0e1334d7..57fac3db9bde19e742dae064b9bf4a8356fd8c2b 100644 (file)
@@ -2477,6 +2477,8 @@ static void bnx2x_pmf_update(struct bnx2x *bp)
        bp->port.pmf = 1;
        DP(NETIF_MSG_LINK, "pmf %d\n", bp->port.pmf);
 
+       bnx2x_dcbx_pmf_update(bp);
+
        /* enable nig attention */
        val = (0xff0f | (1 << (BP_E1HVN(bp) + 4)));
        if (bp->common.int_block == INT_BLOCK_HC) {