Skip to contentSkip to conversation

e1000: allow VLAN devices to use TSO and CSUM offload

PATCH Applied Jeff Kirsher 2 participants 2 messages Oct 11, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 e1000: allow VLAN devices to use TSO and CSUM offload

From: Patrick McHardy <[email protected]>

This patch changes e1000 to set vlan_features so TSO and CSUM offload can be used by VLAN devices, similar as with the other Intel drivers.

---

 drivers/net/e1000/e1000_main.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/net/e1000/e1000_main.c +5 -0
index ad6da7b..dd5ea4e 100644
@@ -1053,6 +1053,11 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
 
 	netdev->features |= NETIF_F_LLTX;
 
+	netdev->vlan_features |= NETIF_F_TSO;
+	netdev->vlan_features |= NETIF_F_TSO6;
+	netdev->vlan_features |= NETIF_F_HW_CSUM;
+	netdev->vlan_features |= NETIF_F_SG;
+
 	adapter->en_mng_pt = e1000_enable_mng_pass_thru(hw);
 
 	/* initialize eeprom parameters */
maintainer Applied
#1 lore raw

From: Jeff Kirsher <[email protected]>
Date: Fri, 10 Oct 2008 18:34:58 -0700

Quoted 9 lines

From: Patrick McHardy <[email protected]>

This patch changes e1000 to set vlan_features so TSO and CSUM offload can be used by VLAN devices, similar as with the other Intel drivers.

Applied to net-2.6, thanks.

I'm applying this because Patrick submitted this a long time ago in the same form that it had in this final submission.