Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204016
b: refs/heads/master
c: 35d3568
h: refs/heads/master
v: v3
  • Loading branch information
Dimitris Michailidis authored and David S. Miller committed Aug 2, 2010
1 parent 91b8cf8 commit db1d993
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 1ae970e0c047fbb1050865c6cf3ac68c7ca67dba
refs/heads/master: 35d35682041686572d5158993dede90bc73dc1d9
10 changes: 6 additions & 4 deletions trunk/drivers/net/cxgb4/cxgb4_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1808,12 +1808,14 @@ static int set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
return err;
}

#define TSO_FLAGS (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN)

static int set_tso(struct net_device *dev, u32 value)
{
if (value)
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 @@ -3539,7 +3541,7 @@ static void free_some_resources(struct adapter *adapter)
t4_fw_bye(adapter, 0);
}

#define VLAN_FEAT (NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO | NETIF_F_TSO6 |\
#define VLAN_FEAT (NETIF_F_SG | NETIF_F_IP_CSUM | TSO_FLAGS | \
NETIF_F_IPV6_CSUM | NETIF_F_HIGHDMA)

static int __devinit init_one(struct pci_dev *pdev,
Expand Down Expand Up @@ -3645,7 +3647,7 @@ static int __devinit init_one(struct pci_dev *pdev,
netif_tx_stop_all_queues(netdev);
netdev->irq = pdev->irq;

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

0 comments on commit db1d993

Please sign in to comment.