diff options
Diffstat (limited to 'net/rxrpc/sysctl.c')
-rw-r--r-- | net/rxrpc/sysctl.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net/rxrpc/sysctl.c b/net/rxrpc/sysctl.c index cdc85e72af5d..50a98a910eb1 100644 --- a/net/rxrpc/sysctl.c +++ b/net/rxrpc/sysctl.c | |||
@@ -17,6 +17,9 @@ | |||
17 | static struct ctl_table_header *rxrpc_sysctl_reg_table; | 17 | static struct ctl_table_header *rxrpc_sysctl_reg_table; |
18 | static const unsigned zero = 0; | 18 | static const unsigned zero = 0; |
19 | static const unsigned one = 1; | 19 | static const unsigned one = 1; |
20 | static const unsigned four = 4; | ||
21 | static const unsigned n_65535 = 65535; | ||
22 | static const unsigned n_max_acks = RXRPC_MAXACKS; | ||
20 | 23 | ||
21 | /* | 24 | /* |
22 | * RxRPC operating parameters. | 25 | * RxRPC operating parameters. |
@@ -94,6 +97,36 @@ static struct ctl_table rxrpc_sysctl_table[] = { | |||
94 | .proc_handler = proc_dointvec_minmax, | 97 | .proc_handler = proc_dointvec_minmax, |
95 | .extra1 = (void *)&one, | 98 | .extra1 = (void *)&one, |
96 | }, | 99 | }, |
100 | |||
101 | /* Non-time values */ | ||
102 | { | ||
103 | .procname = "rx_window_size", | ||
104 | .data = &rxrpc_rx_window_size, | ||
105 | .maxlen = sizeof(unsigned), | ||
106 | .mode = 0644, | ||
107 | .proc_handler = proc_dointvec_minmax, | ||
108 | .extra1 = (void *)&one, | ||
109 | .extra2 = (void *)&n_max_acks, | ||
110 | }, | ||
111 | { | ||
112 | .procname = "rx_mtu", | ||
113 | .data = &rxrpc_rx_mtu, | ||
114 | .maxlen = sizeof(unsigned), | ||
115 | .mode = 0644, | ||
116 | .proc_handler = proc_dointvec_minmax, | ||
117 | .extra1 = (void *)&one, | ||
118 | .extra1 = (void *)&n_65535, | ||
119 | }, | ||
120 | { | ||
121 | .procname = "rx_jumbo_max", | ||
122 | .data = &rxrpc_rx_jumbo_max, | ||
123 | .maxlen = sizeof(unsigned), | ||
124 | .mode = 0644, | ||
125 | .proc_handler = proc_dointvec_minmax, | ||
126 | .extra1 = (void *)&one, | ||
127 | .extra2 = (void *)&four, | ||
128 | }, | ||
129 | |||
97 | { } | 130 | { } |
98 | }; | 131 | }; |
99 | 132 | ||