diff options
author | Casey Leedom <leedom@chelsio.com> | 2010-11-11 04:30:43 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-15 12:17:38 -0500 |
commit | 410989f65151557701ce86875b141e694281dd6c (patch) | |
tree | 3d820193bc53dc5e4075003c75c36e483c79d825 /drivers/net/cxgb4vf | |
parent | 4204875dd4b3c3e40e0294a8c2619fdf9e5907e1 (diff) |
cxgb4vf: Advertise NETIF_F_TSO_ECN.
Advertise NETIF_F_TSO_ECN.
Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb4vf')
-rw-r--r-- | drivers/net/cxgb4vf/cxgb4vf_main.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/cxgb4vf/cxgb4vf_main.c b/drivers/net/cxgb4vf/cxgb4vf_main.c index 4cf530ac149d..9246d2fa6cf9 100644 --- a/drivers/net/cxgb4vf/cxgb4vf_main.c +++ b/drivers/net/cxgb4vf/cxgb4vf_main.c | |||
@@ -1534,14 +1534,19 @@ static void cxgb4vf_get_wol(struct net_device *dev, | |||
1534 | } | 1534 | } |
1535 | 1535 | ||
1536 | /* | 1536 | /* |
1537 | * TCP Segmentation Offload flags which we support. | ||
1538 | */ | ||
1539 | #define TSO_FLAGS (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) | ||
1540 | |||
1541 | /* | ||
1537 | * Set TCP Segmentation Offloading feature capabilities. | 1542 | * Set TCP Segmentation Offloading feature capabilities. |
1538 | */ | 1543 | */ |
1539 | static int cxgb4vf_set_tso(struct net_device *dev, u32 tso) | 1544 | static int cxgb4vf_set_tso(struct net_device *dev, u32 tso) |
1540 | { | 1545 | { |
1541 | if (tso) | 1546 | if (tso) |
1542 | dev->features |= NETIF_F_TSO | NETIF_F_TSO6; | 1547 | dev->features |= TSO_FLAGS; |
1543 | else | 1548 | else |
1544 | dev->features &= ~(NETIF_F_TSO | NETIF_F_TSO6); | 1549 | dev->features &= ~TSO_FLAGS; |
1545 | return 0; | 1550 | return 0; |
1546 | } | 1551 | } |
1547 | 1552 | ||
@@ -2610,7 +2615,7 @@ static int __devinit cxgb4vf_pci_probe(struct pci_dev *pdev, | |||
2610 | netif_carrier_off(netdev); | 2615 | netif_carrier_off(netdev); |
2611 | netdev->irq = pdev->irq; | 2616 | netdev->irq = pdev->irq; |
2612 | 2617 | ||
2613 | netdev->features = (NETIF_F_SG | NETIF_F_TSO | NETIF_F_TSO6 | | 2618 | netdev->features = (NETIF_F_SG | TSO_FLAGS | |
2614 | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | | 2619 | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | |
2615 | NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX | | 2620 | NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX | |
2616 | NETIF_F_GRO); | 2621 | NETIF_F_GRO); |