Skip to contentSkip to conversation

NET: Add support for VLAN feature flag propagation

PATCH In review Jeff Kirsher 2 participants 5 messages Jun 5, 2008 – Jun 12, 2008

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

cover NET: Add support for VLAN feature flag propagation

This patchset adds the new VLAN feature flag support for TSO and CSUM offload. It uses the new interface implemented by Patrick McHardy, and can be tested against the latest torvalds/linux-2.6 tree.

Signature · 2 lines
Cheers,
Jeff Kirsher
#1 lore raw

PATCH 1/3 ixbge: allow vlan devices to use TSO and TCP CSUM offload

Using the new interface for propagating device feature flags into VLAN devices, turn on TSO and CSUM offload on VLAN devices.

---

 drivers/net/ixgbe/ixgbe_main.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
drivers/net/ixgbe/ixgbe_main.c +6 -1
index 7b85922..0d37c90 100644
@@ -3518,8 +3518,13 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
 			   NETIF_F_HW_VLAN_FILTER;
 
 	netdev->features |= NETIF_F_TSO;
-
 	netdev->features |= NETIF_F_TSO6;
+
+	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;
+
 	if (pci_using_dac)
 		netdev->features |= NETIF_F_HIGHDMA;
 
#2 lore raw

Re: [PATCH 1/3] ixbge: allow vlan devices to use TSO and TCP CSUM offload

Quoted 17 lines · Jeff Kirsher

Using the new interface for propagating device feature flags into VLAN devices, turn on TSO and CSUM offload on VLAN devices.

---

 drivers/net/ixgbe/ixgbe_main.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
drivers/net/ixgbe/ixgbe_main.c +0 -0
index 7b85922..0d37c90 100644
@@ -3518,8 +3518,13 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
 			   NETIF_F_HW_VLAN_FILTER;
 

drivers/net/ixgbe/ixgbe_main.c static int __devinit ixgbe_probe(struct pci_dev *pdev, · line 3528

Quoted 10 lines
drivers/net/ixgbe/ixgbe_main.c +6 -1
 	netdev->features |= NETIF_F_TSO;
-
 	netdev->features |= NETIF_F_TSO6;
+
+	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;
+
 	if (pci_using_dac)

applied 1-3

#3 lore raw

PATCH 2/3 igb: allow vlan devices to use TSO and TCP CSUM offload

In reply to Jeff Kirsher

Using the new interface for propagating device feature flags into VLAN deivces, turn on TSO and CSUM offload on VLAN devices.

---

 drivers/net/igb/igb_main.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
drivers/net/igb/igb_main.c +6 -1
index ae398f0..7b6b780 100644
@@ -967,8 +967,13 @@ static int __devinit igb_probe(struct pci_dev *pdev,
 			   NETIF_F_HW_VLAN_FILTER;
 
 	netdev->features |= NETIF_F_TSO;
-
 	netdev->features |= NETIF_F_TSO6;
+
+	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;
+
 	if (pci_using_dac)
 		netdev->features |= NETIF_F_HIGHDMA;
 
#4 lore raw

PATCH 3/3 e1000e: allow VLAN devices to use TSO and TCP CSUM offload

In reply to Jeff Kirsher

Using the new interface for propagating device feature flags into VLAN devices, turn on TSO and CSUM offload on VLAN devices.

---

 drivers/net/e1000e/netdev.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/net/e1000e/netdev.c +5 -0
index 8991ab8..fd11207 100644
@@ -4039,6 +4039,11 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
 	netdev->features |= NETIF_F_TSO;
 	netdev->features |= NETIF_F_TSO6;
 
+	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;
+
 	if (pci_using_dac)
 		netdev->features |= NETIF_F_HIGHDMA;