diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-08 07:38:50 -0800 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-08 07:38:50 -0800 | 
| commit | 1557d33007f63dd96e5d15f33af389378e5f2e54 (patch) | |
| tree | 06d05722b2ba5d2a67532f779fa8a88efe3c88f1 /net/core/sysctl_net_core.c | |
| parent | 6ec22f9b037fc0c2e00ddb7023fad279c365324d (diff) | |
| parent | c656ae95d1c5c8ed5763356263ace2d03087efec (diff) | |
| download | olio-linux-3.10-1557d33007f63dd96e5d15f33af389378e5f2e54.tar.xz olio-linux-3.10-1557d33007f63dd96e5d15f33af389378e5f2e54.zip  | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/sysctl-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/sysctl-2.6: (43 commits)
  security/tomoyo: Remove now unnecessary handling of security_sysctl.
  security/tomoyo: Add a special case to handle accesses through the internal proc mount.
  sysctl: Drop & in front of every proc_handler.
  sysctl: Remove CTL_NONE and CTL_UNNUMBERED
  sysctl: kill dead ctl_handler definitions.
  sysctl: Remove the last of the generic binary sysctl support
  sysctl net: Remove unused binary sysctl code
  sysctl security/tomoyo: Don't look at ctl_name
  sysctl arm: Remove binary sysctl support
  sysctl x86: Remove dead binary sysctl support
  sysctl sh: Remove dead binary sysctl support
  sysctl powerpc: Remove dead binary sysctl support
  sysctl ia64: Remove dead binary sysctl support
  sysctl s390: Remove dead sysctl binary support
  sysctl frv: Remove dead binary sysctl support
  sysctl mips/lasat: Remove dead binary sysctl support
  sysctl drivers: Remove dead binary sysctl support
  sysctl crypto: Remove dead binary sysctl support
  sysctl security/keys: Remove dead binary sysctl support
  sysctl kernel: Remove binary sysctl logic
  ...
Diffstat (limited to 'net/core/sysctl_net_core.c')
| -rw-r--r-- | net/core/sysctl_net_core.c | 21 | 
1 files changed, 4 insertions, 17 deletions
diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c index 887c03c4e3c..26731466481 100644 --- a/net/core/sysctl_net_core.c +++ b/net/core/sysctl_net_core.c @@ -19,7 +19,6 @@  static struct ctl_table net_core_table[] = {  #ifdef CONFIG_NET  	{ -		.ctl_name	= NET_CORE_WMEM_MAX,  		.procname	= "wmem_max",  		.data		= &sysctl_wmem_max,  		.maxlen		= sizeof(int), @@ -27,7 +26,6 @@ static struct ctl_table net_core_table[] = {  		.proc_handler	= proc_dointvec  	},  	{ -		.ctl_name	= NET_CORE_RMEM_MAX,  		.procname	= "rmem_max",  		.data		= &sysctl_rmem_max,  		.maxlen		= sizeof(int), @@ -35,7 +33,6 @@ static struct ctl_table net_core_table[] = {  		.proc_handler	= proc_dointvec  	},  	{ -		.ctl_name	= NET_CORE_WMEM_DEFAULT,  		.procname	= "wmem_default",  		.data		= &sysctl_wmem_default,  		.maxlen		= sizeof(int), @@ -43,7 +40,6 @@ static struct ctl_table net_core_table[] = {  		.proc_handler	= proc_dointvec  	},  	{ -		.ctl_name	= NET_CORE_RMEM_DEFAULT,  		.procname	= "rmem_default",  		.data		= &sysctl_rmem_default,  		.maxlen		= sizeof(int), @@ -51,7 +47,6 @@ static struct ctl_table net_core_table[] = {  		.proc_handler	= proc_dointvec  	},  	{ -		.ctl_name	= NET_CORE_DEV_WEIGHT,  		.procname	= "dev_weight",  		.data		= &weight_p,  		.maxlen		= sizeof(int), @@ -59,7 +54,6 @@ static struct ctl_table net_core_table[] = {  		.proc_handler	= proc_dointvec  	},  	{ -		.ctl_name	= NET_CORE_MAX_BACKLOG,  		.procname	= "netdev_max_backlog",  		.data		= &netdev_max_backlog,  		.maxlen		= sizeof(int), @@ -67,16 +61,13 @@ static struct ctl_table net_core_table[] = {  		.proc_handler	= proc_dointvec  	},  	{ -		.ctl_name	= NET_CORE_MSG_COST,  		.procname	= "message_cost",  		.data		= &net_ratelimit_state.interval,  		.maxlen		= sizeof(int),  		.mode		= 0644,  		.proc_handler	= proc_dointvec_jiffies, -		.strategy	= sysctl_jiffies,  	},  	{ -		.ctl_name	= NET_CORE_MSG_BURST,  		.procname	= "message_burst",  		.data		= &net_ratelimit_state.burst,  		.maxlen		= sizeof(int), @@ -84,7 +75,6 @@ static struct ctl_table net_core_table[] = {  		.proc_handler	= proc_dointvec,  	},  	{ -		.ctl_name	= NET_CORE_OPTMEM_MAX,  		.procname	= "optmem_max",  		.data		= &sysctl_optmem_max,  		.maxlen		= sizeof(int), @@ -93,7 +83,6 @@ static struct ctl_table net_core_table[] = {  	},  #endif /* CONFIG_NET */  	{ -		.ctl_name	= NET_CORE_BUDGET,  		.procname	= "netdev_budget",  		.data		= &netdev_budget,  		.maxlen		= sizeof(int), @@ -101,31 +90,29 @@ static struct ctl_table net_core_table[] = {  		.proc_handler	= proc_dointvec  	},  	{ -		.ctl_name	= NET_CORE_WARNINGS,  		.procname	= "warnings",  		.data		= &net_msg_warn,  		.maxlen		= sizeof(int),  		.mode		= 0644,  		.proc_handler	= proc_dointvec  	}, -	{ .ctl_name = 0 } +	{ }  };  static struct ctl_table netns_core_table[] = {  	{ -		.ctl_name	= NET_CORE_SOMAXCONN,  		.procname	= "somaxconn",  		.data		= &init_net.core.sysctl_somaxconn,  		.maxlen		= sizeof(int),  		.mode		= 0644,  		.proc_handler	= proc_dointvec  	}, -	{ .ctl_name = 0 } +	{ }  };  __net_initdata struct ctl_path net_core_path[] = { -	{ .procname = "net", .ctl_name = CTL_NET, }, -	{ .procname = "core", .ctl_name = NET_CORE, }, +	{ .procname = "net", }, +	{ .procname = "core", },  	{ },  };  |