diff options
Diffstat (limited to 'drivers/net/bnx2x_main.c')
-rw-r--r-- | drivers/net/bnx2x_main.c | 19 |
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 | ||