diff options
Diffstat (limited to 'net/sunrpc/sysctl.c')
| -rw-r--r-- | net/sunrpc/sysctl.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net/sunrpc/sysctl.c b/net/sunrpc/sysctl.c index ef483262f17f..d0c9f460e411 100644 --- a/net/sunrpc/sysctl.c +++ b/net/sunrpc/sysctl.c | |||
| @@ -121,9 +121,16 @@ done: | |||
| 121 | 121 | ||
| 122 | unsigned int xprt_udp_slot_table_entries = RPC_DEF_SLOT_TABLE; | 122 | unsigned int xprt_udp_slot_table_entries = RPC_DEF_SLOT_TABLE; |
| 123 | unsigned int xprt_tcp_slot_table_entries = RPC_DEF_SLOT_TABLE; | 123 | unsigned int xprt_tcp_slot_table_entries = RPC_DEF_SLOT_TABLE; |
| 124 | unsigned int xprt_min_resvport = RPC_DEF_MIN_RESVPORT; | ||
| 125 | EXPORT_SYMBOL(xprt_min_resvport); | ||
| 126 | unsigned int xprt_max_resvport = RPC_DEF_MAX_RESVPORT; | ||
| 127 | EXPORT_SYMBOL(xprt_max_resvport); | ||
| 128 | |||
| 124 | 129 | ||
| 125 | static unsigned int min_slot_table_size = RPC_MIN_SLOT_TABLE; | 130 | static unsigned int min_slot_table_size = RPC_MIN_SLOT_TABLE; |
| 126 | static unsigned int max_slot_table_size = RPC_MAX_SLOT_TABLE; | 131 | static unsigned int max_slot_table_size = RPC_MAX_SLOT_TABLE; |
| 132 | static unsigned int xprt_min_resvport_limit = RPC_MIN_RESVPORT; | ||
| 133 | static unsigned int xprt_max_resvport_limit = RPC_MAX_RESVPORT; | ||
| 127 | 134 | ||
| 128 | static ctl_table debug_table[] = { | 135 | static ctl_table debug_table[] = { |
| 129 | { | 136 | { |
| @@ -180,6 +187,28 @@ static ctl_table debug_table[] = { | |||
| 180 | .extra1 = &min_slot_table_size, | 187 | .extra1 = &min_slot_table_size, |
| 181 | .extra2 = &max_slot_table_size | 188 | .extra2 = &max_slot_table_size |
| 182 | }, | 189 | }, |
| 190 | { | ||
| 191 | .ctl_name = CTL_MIN_RESVPORT, | ||
| 192 | .procname = "min_resvport", | ||
| 193 | .data = &xprt_min_resvport, | ||
| 194 | .maxlen = sizeof(unsigned int), | ||
| 195 | .mode = 0644, | ||
| 196 | .proc_handler = &proc_dointvec_minmax, | ||
| 197 | .strategy = &sysctl_intvec, | ||
| 198 | .extra1 = &xprt_min_resvport_limit, | ||
| 199 | .extra2 = &xprt_max_resvport_limit | ||
| 200 | }, | ||
| 201 | { | ||
| 202 | .ctl_name = CTL_MAX_RESVPORT, | ||
| 203 | .procname = "max_resvport", | ||
| 204 | .data = &xprt_max_resvport, | ||
| 205 | .maxlen = sizeof(unsigned int), | ||
| 206 | .mode = 0644, | ||
| 207 | .proc_handler = &proc_dointvec_minmax, | ||
| 208 | .strategy = &sysctl_intvec, | ||
| 209 | .extra1 = &xprt_min_resvport_limit, | ||
| 210 | .extra2 = &xprt_max_resvport_limit | ||
| 211 | }, | ||
| 183 | { .ctl_name = 0 } | 212 | { .ctl_name = 0 } |
| 184 | }; | 213 | }; |
| 185 | 214 | ||
