aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/cxgb4vf/cxgb4vf_main.c11
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 */
1539static int cxgb4vf_set_tso(struct net_device *dev, u32 tso) 1544static 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);