|
@@ -21,7 +21,9 @@
|
|
#include <net/net_ratelimit.h>
|
|
#include <net/net_ratelimit.h>
|
|
#include <net/busy_poll.h>
|
|
#include <net/busy_poll.h>
|
|
|
|
|
|
|
|
+static int zero = 0;
|
|
static int one = 1;
|
|
static int one = 1;
|
|
|
|
+static int ushort_max = USHRT_MAX;
|
|
|
|
|
|
#ifdef CONFIG_RPS
|
|
#ifdef CONFIG_RPS
|
|
static int rps_sock_flow_sysctl(struct ctl_table *table, int write,
|
|
static int rps_sock_flow_sysctl(struct ctl_table *table, int write,
|
|
@@ -339,7 +341,9 @@ static struct ctl_table netns_core_table[] = {
|
|
.data = &init_net.core.sysctl_somaxconn,
|
|
.data = &init_net.core.sysctl_somaxconn,
|
|
.maxlen = sizeof(int),
|
|
.maxlen = sizeof(int),
|
|
.mode = 0644,
|
|
.mode = 0644,
|
|
- .proc_handler = proc_dointvec
|
|
|
|
|
|
+ .extra1 = &zero,
|
|
|
|
+ .extra2 = &ushort_max,
|
|
|
|
+ .proc_handler = proc_dointvec_minmax
|
|
},
|
|
},
|
|
{ }
|
|
{ }
|
|
};
|
|
};
|