diff options
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/sysctl.c | 5 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/svc_rdma.c | 16 | ||||
-rw-r--r-- | net/sunrpc/xprtrdma/transport.c | 20 | ||||
-rw-r--r-- | net/sunrpc/xprtsock.c | 18 |
4 files changed, 9 insertions, 50 deletions
diff --git a/net/sunrpc/sysctl.c b/net/sunrpc/sysctl.c index 42f9748ae093..f0ce326d0178 100644 --- a/net/sunrpc/sysctl.c +++ b/net/sunrpc/sysctl.c | |||
@@ -168,17 +168,16 @@ static ctl_table debug_table[] = { | |||
168 | .mode = 0444, | 168 | .mode = 0444, |
169 | .proc_handler = &proc_do_xprt, | 169 | .proc_handler = &proc_do_xprt, |
170 | }, | 170 | }, |
171 | { .ctl_name = 0 } | 171 | { } |
172 | }; | 172 | }; |
173 | 173 | ||
174 | static ctl_table sunrpc_table[] = { | 174 | static ctl_table sunrpc_table[] = { |
175 | { | 175 | { |
176 | .ctl_name = CTL_SUNRPC, | ||
177 | .procname = "sunrpc", | 176 | .procname = "sunrpc", |
178 | .mode = 0555, | 177 | .mode = 0555, |
179 | .child = debug_table | 178 | .child = debug_table |
180 | }, | 179 | }, |
181 | { .ctl_name = 0 } | 180 | { } |
182 | }; | 181 | }; |
183 | 182 | ||
184 | #endif | 183 | #endif |
diff --git a/net/sunrpc/xprtrdma/svc_rdma.c b/net/sunrpc/xprtrdma/svc_rdma.c index 35fb68b9c8ec..678cee22013f 100644 --- a/net/sunrpc/xprtrdma/svc_rdma.c +++ b/net/sunrpc/xprtrdma/svc_rdma.c | |||
@@ -121,7 +121,6 @@ static ctl_table svcrdma_parm_table[] = { | |||
121 | .maxlen = sizeof(unsigned int), | 121 | .maxlen = sizeof(unsigned int), |
122 | .mode = 0644, | 122 | .mode = 0644, |
123 | .proc_handler = &proc_dointvec_minmax, | 123 | .proc_handler = &proc_dointvec_minmax, |
124 | .strategy = &sysctl_intvec, | ||
125 | .extra1 = &min_max_requests, | 124 | .extra1 = &min_max_requests, |
126 | .extra2 = &max_max_requests | 125 | .extra2 = &max_max_requests |
127 | }, | 126 | }, |
@@ -131,7 +130,6 @@ static ctl_table svcrdma_parm_table[] = { | |||
131 | .maxlen = sizeof(unsigned int), | 130 | .maxlen = sizeof(unsigned int), |
132 | .mode = 0644, | 131 | .mode = 0644, |
133 | .proc_handler = &proc_dointvec_minmax, | 132 | .proc_handler = &proc_dointvec_minmax, |
134 | .strategy = &sysctl_intvec, | ||
135 | .extra1 = &min_max_inline, | 133 | .extra1 = &min_max_inline, |
136 | .extra2 = &max_max_inline | 134 | .extra2 = &max_max_inline |
137 | }, | 135 | }, |
@@ -141,7 +139,6 @@ static ctl_table svcrdma_parm_table[] = { | |||
141 | .maxlen = sizeof(unsigned int), | 139 | .maxlen = sizeof(unsigned int), |
142 | .mode = 0644, | 140 | .mode = 0644, |
143 | .proc_handler = &proc_dointvec_minmax, | 141 | .proc_handler = &proc_dointvec_minmax, |
144 | .strategy = &sysctl_intvec, | ||
145 | .extra1 = &min_ord, | 142 | .extra1 = &min_ord, |
146 | .extra2 = &max_ord, | 143 | .extra2 = &max_ord, |
147 | }, | 144 | }, |
@@ -209,9 +206,7 @@ static ctl_table svcrdma_parm_table[] = { | |||
209 | .mode = 0644, | 206 | .mode = 0644, |
210 | .proc_handler = &read_reset_stat, | 207 | .proc_handler = &read_reset_stat, |
211 | }, | 208 | }, |
212 | { | 209 | { }, |
213 | .ctl_name = 0, | ||
214 | }, | ||
215 | }; | 210 | }; |
216 | 211 | ||
217 | static ctl_table svcrdma_table[] = { | 212 | static ctl_table svcrdma_table[] = { |
@@ -220,21 +215,16 @@ static ctl_table svcrdma_table[] = { | |||
220 | .mode = 0555, | 215 | .mode = 0555, |
221 | .child = svcrdma_parm_table | 216 | .child = svcrdma_parm_table |
222 | }, | 217 | }, |
223 | { | 218 | { }, |
224 | .ctl_name = 0, | ||
225 | }, | ||
226 | }; | 219 | }; |
227 | 220 | ||
228 | static ctl_table svcrdma_root_table[] = { | 221 | static ctl_table svcrdma_root_table[] = { |
229 | { | 222 | { |
230 | .ctl_name = CTL_SUNRPC, | ||
231 | .procname = "sunrpc", | 223 | .procname = "sunrpc", |
232 | .mode = 0555, | 224 | .mode = 0555, |
233 | .child = svcrdma_table | 225 | .child = svcrdma_table |
234 | }, | 226 | }, |
235 | { | 227 | { }, |
236 | .ctl_name = 0, | ||
237 | }, | ||
238 | }; | 228 | }; |
239 | 229 | ||
240 | void svc_rdma_cleanup(void) | 230 | void svc_rdma_cleanup(void) |
diff --git a/net/sunrpc/xprtrdma/transport.c b/net/sunrpc/xprtrdma/transport.c index 9a63f669ece4..476816062243 100644 --- a/net/sunrpc/xprtrdma/transport.c +++ b/net/sunrpc/xprtrdma/transport.c | |||
@@ -86,79 +86,63 @@ static struct ctl_table_header *sunrpc_table_header; | |||
86 | 86 | ||
87 | static ctl_table xr_tunables_table[] = { | 87 | static ctl_table xr_tunables_table[] = { |
88 | { | 88 | { |
89 | .ctl_name = CTL_UNNUMBERED, | ||
90 | .procname = "rdma_slot_table_entries", | 89 | .procname = "rdma_slot_table_entries", |
91 | .data = &xprt_rdma_slot_table_entries, | 90 | .data = &xprt_rdma_slot_table_entries, |
92 | .maxlen = sizeof(unsigned int), | 91 | .maxlen = sizeof(unsigned int), |
93 | .mode = 0644, | 92 | .mode = 0644, |
94 | .proc_handler = &proc_dointvec_minmax, | 93 | .proc_handler = &proc_dointvec_minmax, |
95 | .strategy = &sysctl_intvec, | ||
96 | .extra1 = &min_slot_table_size, | 94 | .extra1 = &min_slot_table_size, |
97 | .extra2 = &max_slot_table_size | 95 | .extra2 = &max_slot_table_size |
98 | }, | 96 | }, |
99 | { | 97 | { |
100 | .ctl_name = CTL_UNNUMBERED, | ||
101 | .procname = "rdma_max_inline_read", | 98 | .procname = "rdma_max_inline_read", |
102 | .data = &xprt_rdma_max_inline_read, | 99 | .data = &xprt_rdma_max_inline_read, |
103 | .maxlen = sizeof(unsigned int), | 100 | .maxlen = sizeof(unsigned int), |
104 | .mode = 0644, | 101 | .mode = 0644, |
105 | .proc_handler = &proc_dointvec, | 102 | .proc_handler = &proc_dointvec, |
106 | .strategy = &sysctl_intvec, | ||
107 | }, | 103 | }, |
108 | { | 104 | { |
109 | .ctl_name = CTL_UNNUMBERED, | ||
110 | .procname = "rdma_max_inline_write", | 105 | .procname = "rdma_max_inline_write", |
111 | .data = &xprt_rdma_max_inline_write, | 106 | .data = &xprt_rdma_max_inline_write, |
112 | .maxlen = sizeof(unsigned int), | 107 | .maxlen = sizeof(unsigned int), |
113 | .mode = 0644, | 108 | .mode = 0644, |
114 | .proc_handler = &proc_dointvec, | 109 | .proc_handler = &proc_dointvec, |
115 | .strategy = &sysctl_intvec, | ||
116 | }, | 110 | }, |
117 | { | 111 | { |
118 | .ctl_name = CTL_UNNUMBERED, | ||
119 | .procname = "rdma_inline_write_padding", | 112 | .procname = "rdma_inline_write_padding", |
120 | .data = &xprt_rdma_inline_write_padding, | 113 | .data = &xprt_rdma_inline_write_padding, |
121 | .maxlen = sizeof(unsigned int), | 114 | .maxlen = sizeof(unsigned int), |
122 | .mode = 0644, | 115 | .mode = 0644, |
123 | .proc_handler = &proc_dointvec_minmax, | 116 | .proc_handler = &proc_dointvec_minmax, |
124 | .strategy = &sysctl_intvec, | ||
125 | .extra1 = &zero, | 117 | .extra1 = &zero, |
126 | .extra2 = &max_padding, | 118 | .extra2 = &max_padding, |
127 | }, | 119 | }, |
128 | { | 120 | { |
129 | .ctl_name = CTL_UNNUMBERED, | ||
130 | .procname = "rdma_memreg_strategy", | 121 | .procname = "rdma_memreg_strategy", |
131 | .data = &xprt_rdma_memreg_strategy, | 122 | .data = &xprt_rdma_memreg_strategy, |
132 | .maxlen = sizeof(unsigned int), | 123 | .maxlen = sizeof(unsigned int), |
133 | .mode = 0644, | 124 | .mode = 0644, |
134 | .proc_handler = &proc_dointvec_minmax, | 125 | .proc_handler = &proc_dointvec_minmax, |
135 | .strategy = &sysctl_intvec, | ||
136 | .extra1 = &min_memreg, | 126 | .extra1 = &min_memreg, |
137 | .extra2 = &max_memreg, | 127 | .extra2 = &max_memreg, |
138 | }, | 128 | }, |
139 | { | 129 | { |
140 | .ctl_name = CTL_UNNUMBERED, | ||
141 | .procname = "rdma_pad_optimize", | 130 | .procname = "rdma_pad_optimize", |
142 | .data = &xprt_rdma_pad_optimize, | 131 | .data = &xprt_rdma_pad_optimize, |
143 | .maxlen = sizeof(unsigned int), | 132 | .maxlen = sizeof(unsigned int), |
144 | .mode = 0644, | 133 | .mode = 0644, |
145 | .proc_handler = &proc_dointvec, | 134 | .proc_handler = &proc_dointvec, |
146 | }, | 135 | }, |
147 | { | 136 | { }, |
148 | .ctl_name = 0, | ||
149 | }, | ||
150 | }; | 137 | }; |
151 | 138 | ||
152 | static ctl_table sunrpc_table[] = { | 139 | static ctl_table sunrpc_table[] = { |
153 | { | 140 | { |
154 | .ctl_name = CTL_SUNRPC, | ||
155 | .procname = "sunrpc", | 141 | .procname = "sunrpc", |
156 | .mode = 0555, | 142 | .mode = 0555, |
157 | .child = xr_tunables_table | 143 | .child = xr_tunables_table |
158 | }, | 144 | }, |
159 | { | 145 | { }, |
160 | .ctl_name = 0, | ||
161 | }, | ||
162 | }; | 146 | }; |
163 | 147 | ||
164 | #endif | 148 | #endif |
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 37c5475ba258..8b9a2079f2e3 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -81,46 +81,38 @@ static struct ctl_table_header *sunrpc_table_header; | |||
81 | */ | 81 | */ |
82 | static ctl_table xs_tunables_table[] = { | 82 | static ctl_table xs_tunables_table[] = { |
83 | { | 83 | { |
84 | .ctl_name = CTL_SLOTTABLE_UDP, | ||
85 | .procname = "udp_slot_table_entries", | 84 | .procname = "udp_slot_table_entries", |
86 | .data = &xprt_udp_slot_table_entries, | 85 | .data = &xprt_udp_slot_table_entries, |
87 | .maxlen = sizeof(unsigned int), | 86 | .maxlen = sizeof(unsigned int), |
88 | .mode = 0644, | 87 | .mode = 0644, |
89 | .proc_handler = &proc_dointvec_minmax, | 88 | .proc_handler = &proc_dointvec_minmax, |
90 | .strategy = &sysctl_intvec, | ||
91 | .extra1 = &min_slot_table_size, | 89 | .extra1 = &min_slot_table_size, |
92 | .extra2 = &max_slot_table_size | 90 | .extra2 = &max_slot_table_size |
93 | }, | 91 | }, |
94 | { | 92 | { |
95 | .ctl_name = CTL_SLOTTABLE_TCP, | ||
96 | .procname = "tcp_slot_table_entries", | 93 | .procname = "tcp_slot_table_entries", |
97 | .data = &xprt_tcp_slot_table_entries, | 94 | .data = &xprt_tcp_slot_table_entries, |
98 | .maxlen = sizeof(unsigned int), | 95 | .maxlen = sizeof(unsigned int), |
99 | .mode = 0644, | 96 | .mode = 0644, |
100 | .proc_handler = &proc_dointvec_minmax, | 97 | .proc_handler = &proc_dointvec_minmax, |
101 | .strategy = &sysctl_intvec, | ||
102 | .extra1 = &min_slot_table_size, | 98 | .extra1 = &min_slot_table_size, |
103 | .extra2 = &max_slot_table_size | 99 | .extra2 = &max_slot_table_size |
104 | }, | 100 | }, |
105 | { | 101 | { |
106 | .ctl_name = CTL_MIN_RESVPORT, | ||
107 | .procname = "min_resvport", | 102 | .procname = "min_resvport", |
108 | .data = &xprt_min_resvport, | 103 | .data = &xprt_min_resvport, |
109 | .maxlen = sizeof(unsigned int), | 104 | .maxlen = sizeof(unsigned int), |
110 | .mode = 0644, | 105 | .mode = 0644, |
111 | .proc_handler = &proc_dointvec_minmax, | 106 | .proc_handler = &proc_dointvec_minmax, |
112 | .strategy = &sysctl_intvec, | ||
113 | .extra1 = &xprt_min_resvport_limit, | 107 | .extra1 = &xprt_min_resvport_limit, |
114 | .extra2 = &xprt_max_resvport_limit | 108 | .extra2 = &xprt_max_resvport_limit |
115 | }, | 109 | }, |
116 | { | 110 | { |
117 | .ctl_name = CTL_MAX_RESVPORT, | ||
118 | .procname = "max_resvport", | 111 | .procname = "max_resvport", |
119 | .data = &xprt_max_resvport, | 112 | .data = &xprt_max_resvport, |
120 | .maxlen = sizeof(unsigned int), | 113 | .maxlen = sizeof(unsigned int), |
121 | .mode = 0644, | 114 | .mode = 0644, |
122 | .proc_handler = &proc_dointvec_minmax, | 115 | .proc_handler = &proc_dointvec_minmax, |
123 | .strategy = &sysctl_intvec, | ||
124 | .extra1 = &xprt_min_resvport_limit, | 116 | .extra1 = &xprt_min_resvport_limit, |
125 | .extra2 = &xprt_max_resvport_limit | 117 | .extra2 = &xprt_max_resvport_limit |
126 | }, | 118 | }, |
@@ -130,23 +122,17 @@ static ctl_table xs_tunables_table[] = { | |||
130 | .maxlen = sizeof(xs_tcp_fin_timeout), | 122 | .maxlen = sizeof(xs_tcp_fin_timeout), |
131 | .mode = 0644, | 123 | .mode = 0644, |
132 | .proc_handler = &proc_dointvec_jiffies, | 124 | .proc_handler = &proc_dointvec_jiffies, |
133 | .strategy = sysctl_jiffies | ||
134 | }, | ||
135 | { | ||
136 | .ctl_name = 0, | ||
137 | }, | 125 | }, |
126 | { }, | ||
138 | }; | 127 | }; |
139 | 128 | ||
140 | static ctl_table sunrpc_table[] = { | 129 | static ctl_table sunrpc_table[] = { |
141 | { | 130 | { |
142 | .ctl_name = CTL_SUNRPC, | ||
143 | .procname = "sunrpc", | 131 | .procname = "sunrpc", |
144 | .mode = 0555, | 132 | .mode = 0555, |
145 | .child = xs_tunables_table | 133 | .child = xs_tunables_table |
146 | }, | 134 | }, |
147 | { | 135 | { }, |
148 | .ctl_name = 0, | ||
149 | }, | ||
150 | }; | 136 | }; |
151 | 137 | ||
152 | #endif | 138 | #endif |