NET: Add support for VLAN feature flag propagation
Subsystems (2)
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
PATCH 2/3 igb: allow vlan devices to use TSO and TCP CSUM offload
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
@@ -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 ;
PATCH 1/3 ixbge: allow vlan devices to use TSO and TCP CSUM offload
In reply to Jeff KirsherUsing 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
@@ -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 ;
PATCH 3/3 e1000e: allow VLAN devices to use TSO and TCP CSUM offload
In reply to Jeff KirsherUsing 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
@@ -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 ;
Re: [PATCH 1/3] ixbge: allow vlan devices to use TSO and TCP CSUM offload
In reply to Jeff KirsherQuoted 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.
Signed-off-by Peter P Waskiewicz Jr <[email protected]>Signed-off-by Jeff Kirsher <[email protected]>---
drivers/net/ixgbe/ixgbe_main.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)drivers/net/ixgbe/ixgbe_main.c +0
-0@@ -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
-1netdev->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