|
@@ -46,6 +46,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;
|
|
@@ -1158,6 +1159,15 @@ static struct ctl_table ipv4_net_table[] = {
|
|
|
.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,
|