Skip to contentSkip to conversation

eliminte unused /proc/sys/net/ethernet

PATCH In review Jes Sorensen 1 participant 2 messages May 29, 2006 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eliminte unused /proc/sys/net/ethernet

Hi,

Given that /proc/sys/net/ethernet is > 10 years old and empty - maybe we should just nuke it off the face of the planet?

Cheers,
Jes

The /proc/sys/net/ehternet directory has been sitting empty for more than 10 years - eliminate it!

---
 net/ethernet/sysctl_net_ether.c |   14 --------------
 net/sysctl_net.c                |    8 --------
 2 files changed, 22 deletions(-)
net/ethernet/sysctl_net_ether.c deleted +0 -14
Index: linux-2.6/net/ethernet/sysctl_net_ether.c
===================================================================
@@ -1,14 +0,0 @@
-/* -*- linux-c -*-
- * sysctl_net_ether.c: sysctl interface to net Ethernet subsystem.
- *
- * Begun April 1, 1996, Mike Shaver.
- * Added /proc/sys/net/ether directory entry (empty =) ). [MS]
- */
-
-#include <linux/mm.h>
-#include <linux/sysctl.h>
-#include <linux/if_ether.h>
-
-ctl_table ether_table[] = {
-	{0}
-};
net/sysctl_net.c +0 -8
Index: linux-2.6/net/sysctl_net.c
===================================================================
@@ -37,14 +37,6 @@
 		.mode		= 0555,
 		.child		= core_table,
 	},
-#ifdef CONFIG_NET
-	{
-		.ctl_name	= NET_ETHER,
-		.procname	= "ethernet",
-		.mode		= 0555,
-		.child		= ether_table,
-	},
-#endif
 #ifdef CONFIG_INET
 	{
 		.ctl_name	= NET_IPV4,
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Jes" == Jes Sorensen <[email protected]> writes:

Jes> Hi, Given that /proc/sys/net/ethernet is > 10 years old and empty Jes> - maybe we should just nuke it off the face of the planet?

DOH!

Forgot to remove it from the Makefile ... here we go again.

Jes

The /proc/sys/net/ehternet directory has been sitting empty for more than 10 years! Time to eliminate it!

---
 net/ethernet/Makefile           |    1 -
 net/ethernet/sysctl_net_ether.c |   14 --------------
 net/sysctl_net.c                |    8 --------
 3 files changed, 23 deletions(-)
net/ethernet/Makefile +0 -1
Index: linux-2.6/net/ethernet/Makefile
===================================================================
@@ -3,6 +3,5 @@
 #
 
 obj-y					+= eth.o
-obj-$(CONFIG_SYSCTL)			+= sysctl_net_ether.o
 obj-$(subst m,y,$(CONFIG_IPX))		+= pe2.o
 obj-$(subst m,y,$(CONFIG_ATALK))	+= pe2.o
net/ethernet/sysctl_net_ether.c deleted +0 -14
Index: linux-2.6/net/ethernet/sysctl_net_ether.c
===================================================================
@@ -1,14 +0,0 @@
-/* -*- linux-c -*-
- * sysctl_net_ether.c: sysctl interface to net Ethernet subsystem.
- *
- * Begun April 1, 1996, Mike Shaver.
- * Added /proc/sys/net/ether directory entry (empty =) ). [MS]
- */
-
-#include <linux/mm.h>
-#include <linux/sysctl.h>
-#include <linux/if_ether.h>
-
-ctl_table ether_table[] = {
-	{0}
-};
net/sysctl_net.c +0 -8
Index: linux-2.6/net/sysctl_net.c
===================================================================
@@ -37,14 +37,6 @@
 		.mode		= 0555,
 		.child		= core_table,
 	},
-#ifdef CONFIG_NET
-	{
-		.ctl_name	= NET_ETHER,
-		.procname	= "ethernet",
-		.mode		= 0555,
-		.child		= ether_table,
-	},
-#endif
 #ifdef CONFIG_INET
 	{
 		.ctl_name	= NET_IPV4,