aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-07-21 01:47:43 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-21 14:18:29 -0400
commit5316bc0b9adbefe24f149b12caeddc30df6f04e1 (patch)
treef62c6b5e6a0bda659b4aebf5b78ca2536979a33a /drivers
parente15107065d073714dc47cf6b80c8bf5eea1bf18b (diff)
bnx2x: Update vlan_features
As noted by Or Gerlitz <ogerlitz@Voltaire.com>, the vlan_features was not updated Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/bnx2x_main.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index 18c380330bed..b404a9b66d59 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -9310,9 +9310,17 @@ static int bnx2x_set_tso(struct net_device *dev, u32 data)
9310 if (data) { 9310 if (data) {
9311 dev->features |= (NETIF_F_TSO | NETIF_F_TSO_ECN); 9311 dev->features |= (NETIF_F_TSO | NETIF_F_TSO_ECN);
9312 dev->features |= NETIF_F_TSO6; 9312 dev->features |= NETIF_F_TSO6;
9313#ifdef BCM_VLAN
9314 dev->vlan_features |= (NETIF_F_TSO | NETIF_F_TSO_ECN);
9315 dev->vlan_features |= NETIF_F_TSO6;
9316#endif
9313 } else { 9317 } else {
9314 dev->features &= ~(NETIF_F_TSO | NETIF_F_TSO_ECN); 9318 dev->features &= ~(NETIF_F_TSO | NETIF_F_TSO_ECN);
9315 dev->features &= ~NETIF_F_TSO6; 9319 dev->features &= ~NETIF_F_TSO6;
9320#ifdef BCM_VLAN
9321 dev->vlan_features &= ~(NETIF_F_TSO | NETIF_F_TSO_ECN);
9322 dev->vlan_features &= ~NETIF_F_TSO6;
9323#endif
9316 } 9324 }
9317 9325
9318 return 0; 9326 return 0;
@@ -11143,12 +11151,19 @@ static int __devinit bnx2x_init_dev(struct pci_dev *pdev,
11143 dev->features |= NETIF_F_HW_CSUM; 11151 dev->features |= NETIF_F_HW_CSUM;
11144 if (bp->flags & USING_DAC_FLAG) 11152 if (bp->flags & USING_DAC_FLAG)
11145 dev->features |= NETIF_F_HIGHDMA; 11153 dev->features |= NETIF_F_HIGHDMA;
11154 dev->features |= (NETIF_F_TSO | NETIF_F_TSO_ECN);
11155 dev->features |= NETIF_F_TSO6;
11146#ifdef BCM_VLAN 11156#ifdef BCM_VLAN
11147 dev->features |= (NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX); 11157 dev->features |= (NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX);
11148 bp->flags |= (HW_VLAN_RX_FLAG | HW_VLAN_TX_FLAG); 11158 bp->flags |= (HW_VLAN_RX_FLAG | HW_VLAN_TX_FLAG);
11159
11160 dev->vlan_features |= NETIF_F_SG;
11161 dev->vlan_features |= NETIF_F_HW_CSUM;
11162 if (bp->flags & USING_DAC_FLAG)
11163 dev->vlan_features |= NETIF_F_HIGHDMA;
11164 dev->vlan_features |= (NETIF_F_TSO | NETIF_F_TSO_ECN);
11165 dev->vlan_features |= NETIF_F_TSO6;
11149#endif 11166#endif
11150 dev->features |= (NETIF_F_TSO | NETIF_F_TSO_ECN);
11151 dev->features |= NETIF_F_TSO6;
11152 11167
11153 return 0; 11168 return 0;
11154 11169