aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x/bnx2x_main.c
diff options
context:
space:
mode:
authorHao Zheng <hzheng@nicira.com>2010-10-20 09:56:11 -0400
committerDavid S. Miller <davem@davemloft.net>2010-10-21 04:26:56 -0400
commit9bcc08939223c5a2bad42748ee53ab69f5338a32 (patch)
tree174e77181d9325bf39c738c02af98e5667cd9403 /drivers/net/bnx2x/bnx2x_main.c
parentf62bbb5e62c6e4a91fb222d22bc46e8d4d7e59ef (diff)
bnx2x: Update bnx2x to use new vlan accleration.
Make the bnx2x driver use the new vlan accleration model. Signed-off-by: Hao Zheng <hzheng@nicira.com> Signed-off-by: Jesse Gross <jesse@nicira.com> CC: 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.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c
index f22e283cabef..ff99a2fc0426 100644
--- a/drivers/net/bnx2x/bnx2x_main.c
+++ b/drivers/net/bnx2x/bnx2x_main.c
@@ -2371,10 +2371,8 @@ static inline u16 bnx2x_get_cl_flags(struct bnx2x *bp,
2371 flags |= QUEUE_FLG_HC; 2371 flags |= QUEUE_FLG_HC;
2372 flags |= IS_MF(bp) ? QUEUE_FLG_OV : 0; 2372 flags |= IS_MF(bp) ? QUEUE_FLG_OV : 0;
2373 2373
2374#ifdef BCM_VLAN
2375 flags |= QUEUE_FLG_VLAN; 2374 flags |= QUEUE_FLG_VLAN;
2376 DP(NETIF_MSG_IFUP, "vlan removal enabled\n"); 2375 DP(NETIF_MSG_IFUP, "vlan removal enabled\n");
2377#endif
2378 2376
2379 if (!fp->disable_tpa) 2377 if (!fp->disable_tpa)
2380 flags |= QUEUE_FLG_TPA; 2378 flags |= QUEUE_FLG_TPA;
@@ -8630,9 +8628,6 @@ static const struct net_device_ops bnx2x_netdev_ops = {
8630 .ndo_do_ioctl = bnx2x_ioctl, 8628 .ndo_do_ioctl = bnx2x_ioctl,
8631 .ndo_change_mtu = bnx2x_change_mtu, 8629 .ndo_change_mtu = bnx2x_change_mtu,
8632 .ndo_tx_timeout = bnx2x_tx_timeout, 8630 .ndo_tx_timeout = bnx2x_tx_timeout,
8633#ifdef BCM_VLAN
8634 .ndo_vlan_rx_register = bnx2x_vlan_rx_register,
8635#endif
8636#ifdef CONFIG_NET_POLL_CONTROLLER 8631#ifdef CONFIG_NET_POLL_CONTROLLER
8637 .ndo_poll_controller = poll_bnx2x, 8632 .ndo_poll_controller = poll_bnx2x,
8638#endif 8633#endif
@@ -8764,9 +8759,7 @@ static int __devinit bnx2x_init_dev(struct pci_dev *pdev,
8764 dev->features |= NETIF_F_HIGHDMA; 8759 dev->features |= NETIF_F_HIGHDMA;
8765 dev->features |= (NETIF_F_TSO | NETIF_F_TSO_ECN); 8760 dev->features |= (NETIF_F_TSO | NETIF_F_TSO_ECN);
8766 dev->features |= NETIF_F_TSO6; 8761 dev->features |= NETIF_F_TSO6;
8767#ifdef BCM_VLAN
8768 dev->features |= (NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX); 8762 dev->features |= (NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX);
8769 bp->flags |= (HW_VLAN_RX_FLAG | HW_VLAN_TX_FLAG);
8770 8763
8771 dev->vlan_features |= NETIF_F_SG; 8764 dev->vlan_features |= NETIF_F_SG;
8772 dev->vlan_features |= NETIF_F_HW_CSUM; 8765 dev->vlan_features |= NETIF_F_HW_CSUM;
@@ -8774,7 +8767,6 @@ static int __devinit bnx2x_init_dev(struct pci_dev *pdev,
8774 dev->vlan_features |= NETIF_F_HIGHDMA; 8767 dev->vlan_features |= NETIF_F_HIGHDMA;
8775 dev->vlan_features |= (NETIF_F_TSO | NETIF_F_TSO_ECN); 8768 dev->vlan_features |= (NETIF_F_TSO | NETIF_F_TSO_ECN);
8776 dev->vlan_features |= NETIF_F_TSO6; 8769 dev->vlan_features |= NETIF_F_TSO6;
8777#endif
8778 8770
8779 /* get_port_hwinfo() will set prtad and mmds properly */ 8771 /* get_port_hwinfo() will set prtad and mmds properly */
8780 bp->mdio.prtad = MDIO_PRTAD_NONE; 8772 bp->mdio.prtad = MDIO_PRTAD_NONE;