Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224153
b: refs/heads/master
c: 410989f
h: refs/heads/master
i:
  224151: 592f768
v: v3
  • Loading branch information
Casey Leedom authored and David S. Miller committed Nov 15, 2010
1 parent 79aa41b commit 6b2d660
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4204875dd4b3c3e40e0294a8c2619fdf9e5907e1
refs/heads/master: 410989f65151557701ce86875b141e694281dd6c
11 changes: 8 additions & 3 deletions trunk/drivers/net/cxgb4vf/cxgb4vf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1533,15 +1533,20 @@ static void cxgb4vf_get_wol(struct net_device *dev,
memset(&wol->sopass, 0, sizeof(wol->sopass));
}

/*
* TCP Segmentation Offload flags which we support.
*/
#define TSO_FLAGS (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN)

/*
* Set TCP Segmentation Offloading feature capabilities.
*/
static int cxgb4vf_set_tso(struct net_device *dev, u32 tso)
{
if (tso)
dev->features |= NETIF_F_TSO | NETIF_F_TSO6;
dev->features |= TSO_FLAGS;
else
dev->features &= ~(NETIF_F_TSO | NETIF_F_TSO6);
dev->features &= ~TSO_FLAGS;
return 0;
}

Expand Down Expand Up @@ -2610,7 +2615,7 @@ static int __devinit cxgb4vf_pci_probe(struct pci_dev *pdev,
netif_carrier_off(netdev);
netdev->irq = pdev->irq;

netdev->features = (NETIF_F_SG | NETIF_F_TSO | NETIF_F_TSO6 |
netdev->features = (NETIF_F_SG | TSO_FLAGS |
NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX |
NETIF_F_GRO);
Expand Down

0 comments on commit 6b2d660

Please sign in to comment.