aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x/bnx2x_main.c
diff options
context:
space:
mode:
authorShmulik Ravid <shmulikr@broadcom.com>2011-02-28 15:19:55 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-28 15:19:55 -0500
commit985076720187af7ac0c2de4dfe912acba9b4f586 (patch)
tree1b7f36339144742cf596776e4a88fb1b491f34c7 /drivers/net/bnx2x/bnx2x_main.c
parentff938e43d39e926de74b32a3656c190f979ab642 (diff)
bnx2x: use dcb_setapp to manage negotiated application tlvs
With this patch the bnx2x uses the generic dcbnl application tlv list instead of implementing its own get-app handler. When the driver is alerted to a change in the DCB negotiated parameters, it calls dcb_setapp to update the dcbnl application tlvs list making it available to user mode applications and registered notifiers. Signed-off-by: Shmulik Ravid <shmulikr@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_main.c')
-rw-r--r--drivers/net/bnx2x/bnx2x_main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c
index 6c7745eee00d..061733e5e5ca 100644
--- a/drivers/net/bnx2x/bnx2x_main.c
+++ b/drivers/net/bnx2x/bnx2x_main.c
@@ -9441,7 +9441,7 @@ static int __devinit bnx2x_init_dev(struct pci_dev *pdev,
9441 dev->vlan_features |= (NETIF_F_TSO | NETIF_F_TSO_ECN); 9441 dev->vlan_features |= (NETIF_F_TSO | NETIF_F_TSO_ECN);
9442 dev->vlan_features |= NETIF_F_TSO6; 9442 dev->vlan_features |= NETIF_F_TSO6;
9443 9443
9444#ifdef BCM_DCB 9444#ifdef BCM_DCBNL
9445 dev->dcbnl_ops = &bnx2x_dcbnl_ops; 9445 dev->dcbnl_ops = &bnx2x_dcbnl_ops;
9446#endif 9446#endif
9447 9447
@@ -9848,6 +9848,11 @@ static void __devexit bnx2x_remove_one(struct pci_dev *pdev)
9848 } 9848 }
9849#endif 9849#endif
9850 9850
9851#ifdef BCM_DCBNL
9852 /* Delete app tlvs from dcbnl */
9853 bnx2x_dcbnl_update_applist(bp, true);
9854#endif
9855
9851 unregister_netdev(dev); 9856 unregister_netdev(dev);
9852 9857
9853 /* Delete all NAPI objects */ 9858 /* Delete all NAPI objects */