diff options
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r-- | net/sunrpc/xprtsock.c | 18 |
1 files changed, 2 insertions, 16 deletions
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 |