diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 22:20:35 +0300 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 22:20:35 +0300 | 
| commit | 7731b8bc94e599c9a79e428f3359ff2c34b7576a (patch) | |
| tree | 879f18ccbe274122f2d4f095b43cbc7f953e0ada /net/ipv4/sysctl_net_ipv4.c | |
| parent | 48e315618dc4dc8904182cd221e3d395d5d97005 (diff) | |
| parent | 9ffc59d57228d74809700be6f7ecb1db10292f05 (diff) | |
| download | linux-7731b8bc94e599c9a79e428f3359ff2c34b7576a.tar.xz | |
Merge branch 'linus' into x86/urgent
Required to queue a dependent fix.
Diffstat (limited to 'net/ipv4/sysctl_net_ipv4.c')
| -rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 22 | 
1 files changed, 21 insertions, 1 deletions
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index 4b195bac8ac0..d06247ba08b2 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c @@ -30,6 +30,7 @@  static int zero;  static int one = 1; +static int two = 2;  static int four = 4;  static int thousand = 1000;  static int gso_max_segs = GSO_MAX_SEGS; @@ -46,6 +47,7 @@ static int tcp_syn_retries_min = 1;  static int tcp_syn_retries_max = MAX_TCP_SYNCNT;  static int ip_ping_group_range_min[] = { 0, 0 };  static int ip_ping_group_range_max[] = { GID_T_MAX, GID_T_MAX }; +static int comp_sack_nr_max = 255;  /* obsolete */  static int sysctl_tcp_low_latency __read_mostly; @@ -844,7 +846,9 @@ static struct ctl_table ipv4_net_table[] = {  		.data		= &init_net.ipv4.sysctl_tcp_tw_reuse,  		.maxlen		= sizeof(int),  		.mode		= 0644, -		.proc_handler	= proc_dointvec +		.proc_handler	= proc_dointvec_minmax, +		.extra1		= &zero, +		.extra2		= &two,  	},  	{  		.procname	= "tcp_max_tw_buckets", @@ -1152,6 +1156,22 @@ static struct ctl_table ipv4_net_table[] = {  		.extra1		= &one,  	},  	{ +		.procname	= "tcp_comp_sack_delay_ns", +		.data		= &init_net.ipv4.sysctl_tcp_comp_sack_delay_ns, +		.maxlen		= sizeof(unsigned long), +		.mode		= 0644, +		.proc_handler	= proc_doulongvec_minmax, +	}, +	{ +		.procname	= "tcp_comp_sack_nr", +		.data		= &init_net.ipv4.sysctl_tcp_comp_sack_nr, +		.maxlen		= sizeof(int), +		.mode		= 0644, +		.proc_handler	= proc_dointvec_minmax, +		.extra1		= &zero, +		.extra2		= &comp_sack_nr_max, +	}, +	{  		.procname	= "udp_rmem_min",  		.data		= &init_net.ipv4.sysctl_udp_rmem_min,  		.maxlen		= sizeof(init_net.ipv4.sysctl_udp_rmem_min),  | 
