Skip to contentSkip to conversation

net: ethernet: neterion: s2io: remove unused driver

PATCH Superseded Ethan Nelson-Moore 3 participants 7 messages Jan 23 – Jan 25

Subsystems (11)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: ethernet: neterion: s2io: remove unused driver

The s2io driver supports Exar (formerly Neterion) PCI-X 10 Gigabit Ethernet cards. Hardware supporting PCI-X has not been manufactured in years. On x86, it was quickly replaced by PCIe. While it stuck around longer on POWER hardware, the last POWER hardware to support it was POWER7, which is not supported by ppc64le Linux distributions. The last supported mainstream ppc64 Linux distribution was RHEL 7; while it is still supported under ELS, ELS is only available for x86 and IBM Z. It is possible to use many PCI-X cards in standard PCI slots (which are still available on new motherboards), but it does not make sense to do so for 10 Gigabit Ethernet because the maximum bandwidth of standard PCI is only 1067 Mbps. It is therefore highly unlikely that this driver is still being used. Remove the driver, and move the former maintainer to the CREDITS file (restoring credit for the vxge driver, which was removed in commit f05643a0f60b ("eth: remove neterion/vxge").

---
 CREDITS                                       |    4 +
 Documentation/.renames.txt                    |    1 -
 Documentation/PCI/pci-error-recovery.rst      |    1 -
 .../device_drivers/ethernet/index.rst         |    1 -
 .../device_drivers/ethernet/neterion/s2io.rst |  196 -
 MAINTAINERS                                   |    7 -
 arch/mips/configs/loongson2k_defconfig        |    1 -
 arch/mips/configs/mtx1_defconfig              |    1 -
 arch/powerpc/configs/powernv_defconfig        |    1 -
 arch/powerpc/configs/ppc64_defconfig          |    1 -
 arch/powerpc/configs/ppc6xx_defconfig         |    1 -
 arch/powerpc/configs/skiroot_defconfig        |    1 -
 arch/s390/configs/debug_defconfig             |    1 -
 arch/s390/configs/defconfig                   |    1 -
 drivers/net/ethernet/Kconfig                  |    1 -
 drivers/net/ethernet/Makefile                 |    1 -
 drivers/net/ethernet/neterion/Kconfig         |   35 -
 drivers/net/ethernet/neterion/Makefile        |    6 -
 drivers/net/ethernet/neterion/s2io-regs.h     |  958 --
 drivers/net/ethernet/neterion/s2io.c          | 8572 -----------------
 drivers/net/ethernet/neterion/s2io.h          | 1124 ---
 include/linux/pci_ids.h                       |    6 -
 rust/kernel/pci/id.rs                         |    1 -
 23 files changed, 4 insertions(+), 10918 deletions(-)
 delete mode 100644 Documentation/networking/device_drivers/ethernet/neterion/s2io.rst
 delete mode 100644 drivers/net/ethernet/neterion/Kconfig
 delete mode 100644 drivers/net/ethernet/neterion/Makefile
 delete mode 100644 drivers/net/ethernet/neterion/s2io-regs.h
 delete mode 100644 drivers/net/ethernet/neterion/s2io.c
 delete mode 100644 drivers/net/ethernet/neterion/s2io.h
CREDITS +4 -0
index 680bc55024a9..04ffe036828c 100644
@@ -2659,6 +2659,10 @@ S: 3404 E. Harmony Road
 S: Fort Collins, CO 80528
 S: USA
 
+N: Jon Mason
+E: [email protected]
+D: Neterion 10GbE drivers (s2io/vxge)
+
 N: Torben Mathiasen
 E: [email protected]
 E: [email protected]
Documentation/.renames.txt +0 -1
index c0bd5d3dc8b9..a37d68471d50 100644
@@ -819,7 +819,6 @@ networking/device_drivers/intel/ixgbe networking/device_drivers/ethernet/intel/i
 networking/device_drivers/intel/ixgbevf networking/device_drivers/ethernet/intel/ixgbevf
 networking/device_drivers/marvell/octeontx2 networking/device_drivers/ethernet/marvell/octeontx2
 networking/device_drivers/microsoft/netvsc networking/device_drivers/ethernet/microsoft/netvsc
-networking/device_drivers/neterion/s2io networking/device_drivers/ethernet/neterion/s2io
 networking/device_drivers/netronome/nfp networking/device_drivers/ethernet/netronome/nfp
 networking/device_drivers/pensando/ionic networking/device_drivers/ethernet/pensando/ionic
 networking/device_drivers/qualcomm/rmnet networking/device_drivers/cellular/qualcomm/rmnet
Documentation/PCI/pci-error-recovery.rst +0 -1
index 43bc4e3665b4..43838723fde9 100644
@@ -460,7 +460,6 @@ That is, the recovery API only requires that:
    - drivers/net/e1000e
    - drivers/net/ixgbe
    - drivers/net/cxgb3
-   - drivers/net/s2io.c
 
    The cor_error_detected() callback is invoked in handle_error_source() when
    the error severity is "correctable". The callback is optional and allows
Documentation/networking/device_drivers/ethernet/index.rst +0 -1
index bcc02355f828..5e8fc3d6d741 100644
@@ -48,7 +48,6 @@ Contents:
    meta/fbnic
    microsoft/netvsc
    mucse/rnpgbe
-   neterion/s2io
    netronome/nfp
    pensando/ionic
    pensando/ionic_rdma
Documentation/networking/device_drivers/ethernet/neterion/s2io.rst deleted +0 -196

196 lines not on this page · raw message

MAINTAINERS +0 -7
index 92768bceb929..0a0b0edbf071 100644
@@ -18030,13 +18030,6 @@ L:	[email protected]
 S:	Maintained
 F:	net/sched/sch_netem.c
 
-NETERION 10GbE DRIVERS (s2io)
-M:	Jon Mason <[email protected]>
-L:	[email protected]
-S:	Maintained
-F:	Documentation/networking/device_drivers/ethernet/neterion/s2io.rst
-F:	drivers/net/ethernet/neterion/
-
 NETFILTER
 M:	Pablo Neira Ayuso <[email protected]>
 M:	Florian Westphal <[email protected]>
arch/mips/configs/loongson2k_defconfig +0 -1
index aec1fd1902eb..a5c50b63d478 100644
@@ -161,7 +161,6 @@ CONFIG_IXGBE=y
 # CONFIG_NET_VENDOR_MICROSEMI is not set
 # CONFIG_NET_VENDOR_MYRI is not set
 # CONFIG_NET_VENDOR_NATSEMI is not set
-# CONFIG_NET_VENDOR_NETERION is not set
 # CONFIG_NET_VENDOR_NETRONOME is not set
 # CONFIG_NET_VENDOR_NI is not set
 # CONFIG_NET_VENDOR_NVIDIA is not set
arch/mips/configs/mtx1_defconfig +0 -1
index 49dee536009f..77050ae3945f 100644
@@ -283,7 +283,6 @@ CONFIG_MYRI10GE=m
 CONFIG_FEALNX=m
 CONFIG_NATSEMI=m
 CONFIG_NS83820=m
-CONFIG_S2IO=m
 CONFIG_PCMCIA_AXNET=m
 CONFIG_NE2K_PCI=m
 CONFIG_PCMCIA_PCNET=m
arch/powerpc/configs/powernv_defconfig +0 -1
index bd4685612de6..9ac746cfb4be 100644
@@ -166,7 +166,6 @@ CONFIG_BNX2X=m
 # CONFIG_CAVIUM_PTP is not set
 CONFIG_CHELSIO_T1=m
 CONFIG_BE2NET=m
-CONFIG_S2IO=m
 CONFIG_E100=y
 CONFIG_E1000=y
 CONFIG_E1000E=y
arch/powerpc/configs/ppc64_defconfig +0 -1
index 2d92c11eea7e..f0d9b55cb26b 100644
@@ -221,7 +221,6 @@ CONFIG_IXGBE=m
 CONFIG_I40E=m
 CONFIG_MLX4_EN=m
 CONFIG_MYRI10GE=m
-CONFIG_S2IO=m
 CONFIG_PASEMI_MAC=y
 CONFIG_NETXEN_NIC=m
 CONFIG_SUNGEM=y
arch/powerpc/configs/ppc6xx_defconfig +0 -1
index 787d707f64a4..3c08f46f3d41 100644
@@ -434,7 +434,6 @@ CONFIG_ULI526X=m
 CONFIG_PCMCIA_XIRCOM=m
 CONFIG_DL2K=m
 CONFIG_SUNDANCE=m
-CONFIG_S2IO=m
 CONFIG_FEC_MPC52xx=m
 CONFIG_GIANFAR=m
 CONFIG_PCMCIA_FMVJ18X=m
arch/powerpc/configs/skiroot_defconfig +0 -1
index 2b71a6dc399e..f3d17a02659f 100644
@@ -160,7 +160,6 @@ CONFIG_MLX5_CORE_EN=y
 # CONFIG_NET_VENDOR_MICROSEMI is not set
 CONFIG_MYRI10GE=m
 # CONFIG_NET_VENDOR_NATSEMI is not set
-CONFIG_S2IO=m
 # CONFIG_NET_VENDOR_NETRONOME is not set
 # CONFIG_NET_VENDOR_NI is not set
 # CONFIG_NET_VENDOR_NVIDIA is not set
arch/s390/configs/debug_defconfig +0 -1
index 0713914b25b4..0973b830c868 100644
@@ -560,7 +560,6 @@ CONFIG_MLX5_SF=y
 # CONFIG_NET_VENDOR_MYRI is not set
 # CONFIG_NET_VENDOR_NI is not set
 # CONFIG_NET_VENDOR_NATSEMI is not set
-# CONFIG_NET_VENDOR_NETERION is not set
 # CONFIG_NET_VENDOR_NETRONOME is not set
 # CONFIG_NET_VENDOR_NVIDIA is not set
 # CONFIG_NET_VENDOR_OKI is not set
arch/s390/configs/defconfig +0 -1
index c064e0cacc98..54ff5faf3541 100644
@@ -550,7 +550,6 @@ CONFIG_MLX5_SF=y
 # CONFIG_NET_VENDOR_MYRI is not set
 # CONFIG_NET_VENDOR_NI is not set
 # CONFIG_NET_VENDOR_NATSEMI is not set
-# CONFIG_NET_VENDOR_NETERION is not set
 # CONFIG_NET_VENDOR_NETRONOME is not set
 # CONFIG_NET_VENDOR_NVIDIA is not set
 # CONFIG_NET_VENDOR_OKI is not set
drivers/net/ethernet/Kconfig +0 -1
index 678beefe314a..aa7103e7f47f 100644
@@ -131,7 +131,6 @@ config FEALNX
 
 source "drivers/net/ethernet/ni/Kconfig"
 source "drivers/net/ethernet/natsemi/Kconfig"
-source "drivers/net/ethernet/neterion/Kconfig"
 source "drivers/net/ethernet/netronome/Kconfig"
 source "drivers/net/ethernet/8390/Kconfig"
 source "drivers/net/ethernet/nvidia/Kconfig"
drivers/net/ethernet/Makefile +0 -1
index c9922628d8d6..6615a67a63d5 100644
@@ -68,7 +68,6 @@ obj-$(CONFIG_NET_VENDOR_MUCSE) += mucse/
 obj-$(CONFIG_NET_VENDOR_MYRI) += myricom/
 obj-$(CONFIG_FEALNX) += fealnx.o
 obj-$(CONFIG_NET_VENDOR_NATSEMI) += natsemi/
-obj-$(CONFIG_NET_VENDOR_NETERION) += neterion/
 obj-$(CONFIG_NET_VENDOR_NETRONOME) += netronome/
 obj-$(CONFIG_NET_VENDOR_NI) += ni/
 obj-$(CONFIG_NET_VENDOR_NVIDIA) += nvidia/
drivers/net/ethernet/neterion/Kconfig deleted +0 -35
deleted file mode 100644
index 09a89e72f904..000000000000
@@ -1,35 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-#
-# Exar device configuration
-#
-
-config NET_VENDOR_NETERION
-	bool "Neterion (Exar) devices"
-	default y
-	depends on PCI
-	help
-	  If you have a network (Ethernet) card belonging to this class, say Y.
-
-	  Note that the answer to this question doesn't directly affect the
-	  kernel: saying N will just cause the configurator to skip all
-	  the questions about Neterion/Exar cards. If you say Y, you will be
-	  asked for your specific card in the following questions.
-
-if NET_VENDOR_NETERION
-
-config S2IO
-	tristate "Neterion (Exar) Xframe 10Gb Ethernet Adapter"
-	depends on PCI
-	help
-	  This driver supports Exar Corp's Xframe Series 10Gb Ethernet Adapters.
-	  These were originally released from S2IO, which renamed itself
-	  Neterion.  So, the adapters might be labeled as either one, depending
-	  on its age.
-
-	  More specific information on configuring the driver is in
-	  <file:Documentation/networking/device_drivers/ethernet/neterion/s2io.rst>.
-
-	  To compile this driver as a module, choose M here. The module
-	  will be called s2io.
-
-endif # NET_VENDOR_NETERION
drivers/net/ethernet/neterion/Makefile deleted +0 -6
deleted file mode 100644
index de98b4e6eff9..000000000000
@@ -1,6 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-#
-# Makefile for the Exar network device drivers.
-#
-
-obj-$(CONFIG_S2IO) += s2io.o
drivers/net/ethernet/neterion/s2io-regs.h deleted +0 -958

958 lines not on this page · raw message

drivers/net/ethernet/neterion/s2io.c deleted +0 -8572

1,691 lines not on this page · raw message

drivers/net/ethernet/neterion/s2io.h deleted +0 -1124

1,124 lines not on this page · raw message

include/linux/pci_ids.h +0 -6
index 91704f20d7da..25aecf5b3671 100644

Lines of this file are not shown. View the raw message.

rust/kernel/pci/id.rs +0 -1
index 42ffb1bbf87c..9cc8952ba4fd 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.43.0

Part of the diff is not shown here. View the raw message.

#1 lore raw
Quoted 5 lines · Ethan Nelson-Moore

... Remove the driver, and move the former maintainer
to the CREDITS file (restoring credit for the vxge driver, which was removed in commit f05643a0f60b ("eth: remove neterion/vxge").

 include/linux/pci_ids.h                       |    6 -

Not sure there's value in removing the IDs from pci_ids.h. It may lead to unnecessary conflicts later for stable and other backports.

Quoted 13 lines

+++ b/include/linux/pci_ids.h

include/linux/pci_ids.h +0 -6
@@ -2445,12 +2445,6 @@
 #define PCI_DEVICE_ID_ARECA_1680	0x1680
 #define PCI_DEVICE_ID_ARECA_1681	0x1681
 
-#define PCI_VENDOR_ID_S2IO		0x17d5
-#define	PCI_DEVICE_ID_S2IO_WIN		0x5731
-#define	PCI_DEVICE_ID_S2IO_UNI		0x5831
-#define PCI_DEVICE_ID_HERC_WIN		0x5732
-#define PCI_DEVICE_ID_HERC_UNI		0x5832
-
 #define PCI_VENDOR_ID_SITECOM		0x182d
 #define PCI_DEVICE_ID_SITECOM_DC105V2	0x3069
#2 lore raw
Quoted 2 lines · Bjorn Helgaas

Not sure there's value in removing the IDs from pci_ids.h. It may lead to unnecessary conflicts later for stable and other backports.

Patches to remove drivers are generally not backported to stable versions, even if the driver is broken, so I don't think this will be an issue. There is no point in keeping unused IDs around.

#3 lore raw

Le 24/01/2026 à 03:01, Ethan Nelson-Moore a écrit :

Quoted 9 lines

[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]

Quoted 2 lines · Bjorn Helgaas

Not sure there's value in removing the IDs from pci_ids.h. It may lead to unnecessary conflicts later for stable and other backports.

Patches to remove drivers are generally not backported to stable versions, even if the driver is broken, so I don't think this will be an issue. There is no point in keeping unused IDs around.

Yes and that's exactly the reason why removing unused IDs will be a problem.

Let's take an exemple: some patch adds PCI_DEVICE_ID_ARECA_1682 after PCI_DEVICE_ID_ARECA_1681 in pci_ids.h in the mainline. That patch needs to be backported and it conflicts with PCI_VENDOR_ID_S2IO which is not anymore in the mainline but is still in stable.

Christophe

#4 lore raw
Quoted 6 lines · Christophe Leroy (CS GROUP)

Yes and that's exactly the reason why removing unused IDs will be a problem.

Let's take an exemple: some patch adds PCI_DEVICE_ID_ARECA_1682 after PCI_DEVICE_ID_ARECA_1681 in pci_ids.h in the mainline. That patch needs to be backported and it conflicts with PCI_VENDOR_ID_S2IO which is not anymore in the mainline but is still in stable.

Hi, Christophe,

I understand your reasoning now. Thanks for clarifying. In my opinion, changes to pci_ids.h don't happen often enough for that to be a problem. Unused IDs have been removed from it before.

Sincerely,
Ethan

#5 lore raw
Quoted 9 lines · Ethan Nelson-Moore
Quoted 6 lines · Christophe Leroy (CS GROUP)

Yes and that's exactly the reason why removing unused IDs will be a problem.

Let's take an exemple: some patch adds PCI_DEVICE_ID_ARECA_1682 after PCI_DEVICE_ID_ARECA_1681 in pci_ids.h in the mainline. That patch needs to be backported and it conflicts with PCI_VENDOR_ID_S2IO which is not anymore in the mainline but is still in stable.

Quoted 5 lines

Hi, Christophe,

I understand your reasoning now. Thanks for clarifying. In my opinion, changes to pci_ids.h don't happen often enough for that to be a problem. Unused IDs have been removed from it before.

What is the value in removing the IDs?

The values can never be reused for new hardware, so removal doesn't make room for anything in the future. Unlike the removal of driver code, removing the IDs doesn't reduce complexity or improve readability or maintainability.

#6 lore raw
Quoted 6 lines · Bjorn Helgaas

What is the value in removing the IDs?

The values can never be reused for new hardware, so removal doesn't make room for anything in the future. Unlike the removal of driver code, removing the IDs doesn't reduce complexity or improve readability or maintainability.

Understood. I'll send an updated patch which retains the device IDs.