e1000e: set CONFIG_E1000E=y in x86 defconfigs
Subsystems (7)
PATCH 1/4 e1000e: set CONFIG_E1000E=y in x86 defconfigs
This adds to the already default CONFIG_E1000=y in these files.
---
arch/x86/configs/i386_defconfig | 1 + arch/x86/configs/x86_64_defconfig | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
arch/x86/configs/i386_defconfig +1 -0
@@ -814,6 +814,7 @@ CONFIG_NETDEV_1000=y CONFIG_E1000=y # CONFIG_E1000_NAPI is not set # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set +CONFIG_E1000E=y # CONFIG_NS83820 is not set # CONFIG_HAMACHI is not set # CONFIG_YELLOWFIN is not set
arch/x86/configs/x86_64_defconfig +1 -0
@@ -740,6 +740,7 @@ CONFIG_NETDEV_1000=y CONFIG_E1000=y # CONFIG_E1000_NAPI is not set # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set +CONFIG_E1000E=y # CONFIG_NS83820 is not set # CONFIG_HAMACHI is not set # CONFIG_YELLOWFIN is not set
PATCH 2/4 e1000: enable NAPI by default in defconfig
It's preferred to run with NAPI enabled, even for e1000. e1000e runs at all times in NAPI mode so this setting is not used.
In the future we'll make e1000 NAPI-only.
---
arch/ia64/configs/generic_defconfig | 2 +- arch/ia64/configs/gensparse_defconfig | 2 +- arch/ia64/configs/tiger_defconfig | 2 +- arch/ia64/configs/zx1_defconfig | 2 +- arch/mips/configs/mtx1_defconfig | 2 +- arch/parisc/configs/c3000_defconfig | 2 +- arch/powerpc/configs/83xx/mpc832x_rdb_defconfig | 2 +- arch/powerpc/configs/g5_defconfig | 2 +- arch/powerpc/configs/iseries_defconfig | 2 +- arch/powerpc/configs/maple_defconfig | 2 +- arch/powerpc/configs/ppc64_defconfig | 2 +- arch/powerpc/configs/prpmc2800_defconfig | 2 +- arch/powerpc/configs/pseries_defconfig | 2 +- arch/ppc/configs/bamboo_defconfig | 2 +- arch/ppc/configs/katana_defconfig | 2 +- arch/sh/configs/r7780mp_defconfig | 2 +- arch/x86/configs/i386_defconfig | 2 +- arch/x86/configs/x86_64_defconfig | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-)
arch/ia64/configs/generic_defconfig +1 -1
@@ -592,7 +592,7 @@ CONFIG_NETDEV_1000=y # CONFIG_ACENIC is not set # CONFIG_DL2K is not set CONFIG_E1000=y -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set # CONFIG_NS83820 is not set # CONFIG_HAMACHI is not set
arch/ia64/configs/gensparse_defconfig +1 -1
@@ -594,7 +594,7 @@ CONFIG_E100=m # CONFIG_ACENIC is not set # CONFIG_DL2K is not set CONFIG_E1000=y -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set # CONFIG_NS83820 is not set # CONFIG_HAMACHI is not set
arch/ia64/configs/tiger_defconfig +1 -1
@@ -574,7 +574,7 @@ CONFIG_NETDEV_1000=y # CONFIG_ACENIC is not set # CONFIG_DL2K is not set CONFIG_E1000=y -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set # CONFIG_NS83820 is not set # CONFIG_HAMACHI is not set
arch/ia64/configs/zx1_defconfig +1 -1
@@ -634,7 +634,7 @@ CONFIG_E100=y # CONFIG_ACENIC is not set # CONFIG_DL2K is not set CONFIG_E1000=y -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set # CONFIG_NS83820 is not set # CONFIG_HAMACHI is not set
arch/mips/configs/mtx1_defconfig +1 -1
@@ -1297,7 +1297,7 @@ CONFIG_ACENIC=m # CONFIG_ACENIC_OMIT_TIGON_I is not set CONFIG_DL2K=m CONFIG_E1000=m -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set CONFIG_NS83820=m CONFIG_HAMACHI=m
arch/parisc/configs/c3000_defconfig +1 -1
@@ -552,7 +552,7 @@ CONFIG_ACENIC=m # CONFIG_ACENIC_OMIT_TIGON_I is not set # CONFIG_DL2K is not set CONFIG_E1000=m -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set # CONFIG_E1000E is not set # CONFIG_NS83820 is not set
arch/powerpc/configs/83xx/mpc832x_rdb_defconfig +1 -1
@@ -513,7 +513,7 @@ CONFIG_NETDEV_1000=y # CONFIG_ACENIC is not set # CONFIG_DL2K is not set CONFIG_E1000=y -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set # CONFIG_E1000E is not set # CONFIG_E1000E_ENABLED is not set
arch/powerpc/configs/g5_defconfig +1 -1
@@ -727,7 +727,7 @@ CONFIG_ACENIC=y CONFIG_ACENIC_OMIT_TIGON_I=y # CONFIG_DL2K is not set CONFIG_E1000=y -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set # CONFIG_E1000E is not set # CONFIG_E1000E_ENABLED is not set
arch/powerpc/configs/iseries_defconfig +1 -1
@@ -654,7 +654,7 @@ CONFIG_ACENIC=m # CONFIG_ACENIC_OMIT_TIGON_I is not set # CONFIG_DL2K is not set CONFIG_E1000=m -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set # CONFIG_E1000E is not set # CONFIG_E1000E_ENABLED is not set
arch/powerpc/configs/maple_defconfig +1 -1
@@ -607,7 +607,7 @@ CONFIG_NETDEV_1000=y # CONFIG_ACENIC is not set # CONFIG_DL2K is not set CONFIG_E1000=y -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set # CONFIG_E1000E is not set # CONFIG_NS83820 is not set
arch/powerpc/configs/ppc64_defconfig +1 -1
@@ -934,7 +934,7 @@ CONFIG_ACENIC=y CONFIG_ACENIC_OMIT_TIGON_I=y # CONFIG_DL2K is not set CONFIG_E1000=y -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set # CONFIG_E1000E is not set # CONFIG_E1000E_ENABLED is not set
arch/powerpc/configs/prpmc2800_defconfig +1 -1
@@ -731,7 +731,7 @@ CONFIG_NETDEV_1000=y # CONFIG_ACENIC is not set # CONFIG_DL2K is not set CONFIG_E1000=y -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set # CONFIG_E1000E is not set # CONFIG_E1000E_ENABLED is not set
arch/powerpc/configs/pseries_defconfig +1 -1
@@ -807,7 +807,7 @@ CONFIG_ACENIC=y CONFIG_ACENIC_OMIT_TIGON_I=y # CONFIG_DL2K is not set CONFIG_E1000=y -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set # CONFIG_E1000E is not set # CONFIG_E1000E_ENABLED is not set
arch/ppc/configs/bamboo_defconfig +1 -1
@@ -498,7 +498,7 @@ CONFIG_NATSEMI=y # CONFIG_ACENIC is not set # CONFIG_DL2K is not set CONFIG_E1000=y -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set # CONFIG_NS83820 is not set # CONFIG_HAMACHI is not set
arch/ppc/configs/katana_defconfig +1 -1
@@ -487,7 +487,7 @@ CONFIG_E100=y # CONFIG_ACENIC is not set # CONFIG_DL2K is not set CONFIG_E1000=y -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set # CONFIG_NS83820 is not set # CONFIG_HAMACHI is not set
arch/sh/configs/r7780mp_defconfig +1 -1
@@ -622,7 +622,7 @@ CONFIG_NETDEV_1000=y # CONFIG_ACENIC is not set # CONFIG_DL2K is not set CONFIG_E1000=m -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set # CONFIG_E1000E is not set # CONFIG_E1000E_ENABLED is not set
arch/x86/configs/i386_defconfig +1 -1
@@ -812,7 +812,7 @@ CONFIG_NETDEV_1000=y # CONFIG_ACENIC is not set # CONFIG_DL2K is not set CONFIG_E1000=y -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set CONFIG_E1000E=y # CONFIG_NS83820 is not set
arch/x86/configs/x86_64_defconfig +1 -1
@@ -738,7 +738,7 @@ CONFIG_NETDEV_1000=y # CONFIG_ACENIC is not set # CONFIG_DL2K is not set CONFIG_E1000=y -# CONFIG_E1000_NAPI is not set +CONFIG_E1000_NAPI=y # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set CONFIG_E1000E=y # CONFIG_NS83820 is not set
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
PATCH 3/4 e1000: remove PCI Express device IDs
In reply to Jeff KirsherWe do not want to prolong the situation much longer that e1000 and e1000e support these devices at the same time. As a result, take out the bandage that was added for the interim period and remove all the PCI Express device IDs from e1000.
---
drivers/net/Kconfig | 3 --- drivers/net/e1000/e1000_main.c | 33 --------------------------------- 2 files changed, 0 insertions(+), 36 deletions(-)
drivers/net/Kconfig +0 -3
@@ -2028,9 +2028,6 @@ config E1000E To compile this driver as a module, choose M here. The module will be called e1000e. -config E1000E_ENABLED - def_bool E1000E != n - config IP1000 tristate "IP1000 Gigabit Ethernet support" depends on PCI && EXPERIMENTAL
drivers/net/e1000/e1000_main.c +0 -33
@@ -47,12 +47,6 @@ static const char e1000_copyright[] = "Copyright (c) 1999-2006 Intel Corporation* Macro expands to... * {PCI_DEVICE(PCI_VENDOR_ID_INTEL, device_id)} */ -#ifdef CONFIG_E1000E_ENABLED -#define PCIE (x) -#else -#define PCIE (x) x, -#endif -static struct pci_device_id e1000_pci_tbl[] = {INTEL_E1000_ETHERNET_DEVICE (0x1000 ),INTEL_E1000_ETHERNET_DEVICE (0x1001 ),
@@ -79,14 +73,6 @@ static struct pci_device_id e1000_pci_tbl[] = {INTEL_E1000_ETHERNET_DEVICE (0x1026 ),INTEL_E1000_ETHERNET_DEVICE (0x1027 ),INTEL_E1000_ETHERNET_DEVICE (0x1028 ), -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x1049)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x104A)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x104B)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x104C)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x104D)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x105E)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x105F)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x1060))INTEL_E1000_ETHERNET_DEVICE (0x1075 ),INTEL_E1000_ETHERNET_DEVICE (0x1076 ), INTEL_E1000_ETHERNET_DEVICE(0x1077),
@@ -95,28 +81,9 @@ PCIE( INTEL_E1000_ETHERNET_DEVICE(0x1060))INTEL_E1000_ETHERNET_DEVICE (0x107A ),INTEL_E1000_ETHERNET_DEVICE (0x107B ),INTEL_E1000_ETHERNET_DEVICE (0x107C ), -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x107D)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x107E)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x107F))INTEL_E1000_ETHERNET_DEVICE (0x108A ), -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x108B)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x108C)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x1096)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x1098))INTEL_E1000_ETHERNET_DEVICE (0x1099 ), -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x109A)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x10A4)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x10A5))INTEL_E1000_ETHERNET_DEVICE (0x10B5 ), -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x10B9)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x10BA)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x10BB)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x10BC)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x10C4)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x10C5)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x10D5)) -PCIE( INTEL_E1000_ETHERNET_DEVICE(0x10D9)) -PCIE (INTEL_E1000_ETHERNET_DEVICE (0x10DA ))/* required last entry */ {0,} };
PATCH 4/4 e1000e: Allow TSO to trickle down to VLAN device
In reply to Jeff KirsherFix TSO over VLAN's by propagating settings to our VLAN devices.
---
drivers/net/e1000e/ethtool.c | 16 ++++++++++++++++ drivers/net/e1000e/netdev.c | 8 ++++++++ 2 files changed, 24 insertions(+), 0 deletions(-)
drivers/net/e1000e/ethtool.c +16 -0
@@ -32,6 +32,7 @@#include <linux/ethtool.h> #include <linux/pci.h> #include <linux/delay.h> +#include <linux/if_vlan.h> #include "e1000.h"
@@ -371,6 +372,8 @@ static int e1000_set_tx_csum(struct net_device *netdev, u32 data)static int e1000_set_tso (struct net_device *netdev,u32 data) {struct e1000_adapter *adapter =netdev_priv (netdev); +int i; +struct net_device *v_netdev;if (data) { netdev->features |=NETIF_F_TSO ;
@@ -378,8 +381,21 @@ static int e1000_set_tso(struct net_device *netdev, u32 data) }else { netdev->features &= ~NETIF_F_TSO ; netdev->features &= ~NETIF_F_TSO6 ; +/* disable TSO on all VLANs if they're present */ +if (!adapter->vlgrp) + goto tso_out; +for (i =0 ; i <VLAN_GROUP_ARRAY_LEN ; i++) { + v_netdev =vlan_group_get_device (adapter->vlgrp, i); +if (!v_netdev) +continue ; + + v_netdev->features &= ~NETIF_F_TSO ; + v_netdev->features &= ~NETIF_F_TSO6 ; +vlan_group_set_device (adapter->vlgrp, i, v_netdev); + } } +tso_out:ndev_info (netdev,"TSO is %s\n" , data ?"Enabled" :"Disabled" ); adapter->flags |=FLAG_TSO_FORCE ;
drivers/net/e1000e/netdev.c +8 -0
@@ -1432,6 +1432,7 @@ static void e1000_vlan_rx_add_vid(struct net_device *netdev, u16 vid)struct e1000_adapter *adapter =netdev_priv (netdev);struct e1000_hw *hw = &adapter->hw;u32 vfta, index; +struct net_device *v_netdev;/* don't update vlan cookie if already programmed */ if ((adapter->hw.mng_cookie.status &
@@ -1443,6 +1444,13 @@ static void e1000_vlan_rx_add_vid(struct net_device *netdev, u16 vid) vfta =E1000_READ_REG_ARRAY (hw,E1000_VFTA , index); vfta |= (1 << (vid &0x1F ));e1000e_write_vfta (hw, index, vfta); +/* +* Copy feature flags from netdev to the vlan netdev for this vid. +* This allows things like TSO to bubble down to our vlan device. +*/ + v_netdev =vlan_group_get_device (adapter->vlgrp, vid); + v_netdev->features |= adapter->netdev->features; +vlan_group_set_device (adapter->vlgrp, vid, v_netdev); }static void e1000_vlan_rx_kill_vid (struct net_device *netdev,u16 vid)
RE: [PATCH 4/4] e1000e: Allow TSO to trickle down to VLAN device
Quoted 9 lines
Fix TSO over VLAN's by propagating settings to our VLAN devices.
Signed-off-by Jeff Kirsher <[email protected]>Signed-off-by Auke Kok <[email protected]>---
drivers/net/e1000e/ethtool.c | 16 ++++++++++++++++ drivers/net/e1000e/netdev.c | 8 ++++++++ 2 files changed, 24 insertions(+), 0 deletions(-)
I think this one got accidentally pushed. I'm still working on a fix for this based on Patrick's request to not directly mess with the VLAN flags.
Jeff K and Jeff G, please hold off on this patch. I'll work with Jeff K. on getting this the proper fix. This is my fault that it's written this way in these drivers, and I'll get it corrected.
Thanks,
-PJ Waskiewicz
<[email protected]>