diff options
Diffstat (limited to 'net/rds/iw_sysctl.c')
-rw-r--r-- | net/rds/iw_sysctl.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/net/rds/iw_sysctl.c b/net/rds/iw_sysctl.c index 9590678cd616..3e00b01559f2 100644 --- a/net/rds/iw_sysctl.c +++ b/net/rds/iw_sysctl.c | |||
@@ -57,7 +57,6 @@ unsigned int rds_iw_sysctl_flow_control = 1; | |||
57 | 57 | ||
58 | ctl_table rds_iw_sysctl_table[] = { | 58 | ctl_table rds_iw_sysctl_table[] = { |
59 | { | 59 | { |
60 | .ctl_name = CTL_UNNUMBERED, | ||
61 | .procname = "max_send_wr", | 60 | .procname = "max_send_wr", |
62 | .data = &rds_iw_sysctl_max_send_wr, | 61 | .data = &rds_iw_sysctl_max_send_wr, |
63 | .maxlen = sizeof(unsigned long), | 62 | .maxlen = sizeof(unsigned long), |
@@ -67,7 +66,6 @@ ctl_table rds_iw_sysctl_table[] = { | |||
67 | .extra2 = &rds_iw_sysctl_max_wr_max, | 66 | .extra2 = &rds_iw_sysctl_max_wr_max, |
68 | }, | 67 | }, |
69 | { | 68 | { |
70 | .ctl_name = CTL_UNNUMBERED, | ||
71 | .procname = "max_recv_wr", | 69 | .procname = "max_recv_wr", |
72 | .data = &rds_iw_sysctl_max_recv_wr, | 70 | .data = &rds_iw_sysctl_max_recv_wr, |
73 | .maxlen = sizeof(unsigned long), | 71 | .maxlen = sizeof(unsigned long), |
@@ -77,7 +75,6 @@ ctl_table rds_iw_sysctl_table[] = { | |||
77 | .extra2 = &rds_iw_sysctl_max_wr_max, | 75 | .extra2 = &rds_iw_sysctl_max_wr_max, |
78 | }, | 76 | }, |
79 | { | 77 | { |
80 | .ctl_name = CTL_UNNUMBERED, | ||
81 | .procname = "max_unsignaled_wr", | 78 | .procname = "max_unsignaled_wr", |
82 | .data = &rds_iw_sysctl_max_unsig_wrs, | 79 | .data = &rds_iw_sysctl_max_unsig_wrs, |
83 | .maxlen = sizeof(unsigned long), | 80 | .maxlen = sizeof(unsigned long), |
@@ -87,7 +84,6 @@ ctl_table rds_iw_sysctl_table[] = { | |||
87 | .extra2 = &rds_iw_sysctl_max_unsig_wr_max, | 84 | .extra2 = &rds_iw_sysctl_max_unsig_wr_max, |
88 | }, | 85 | }, |
89 | { | 86 | { |
90 | .ctl_name = CTL_UNNUMBERED, | ||
91 | .procname = "max_unsignaled_bytes", | 87 | .procname = "max_unsignaled_bytes", |
92 | .data = &rds_iw_sysctl_max_unsig_bytes, | 88 | .data = &rds_iw_sysctl_max_unsig_bytes, |
93 | .maxlen = sizeof(unsigned long), | 89 | .maxlen = sizeof(unsigned long), |
@@ -97,7 +93,6 @@ ctl_table rds_iw_sysctl_table[] = { | |||
97 | .extra2 = &rds_iw_sysctl_max_unsig_bytes_max, | 93 | .extra2 = &rds_iw_sysctl_max_unsig_bytes_max, |
98 | }, | 94 | }, |
99 | { | 95 | { |
100 | .ctl_name = CTL_UNNUMBERED, | ||
101 | .procname = "max_recv_allocation", | 96 | .procname = "max_recv_allocation", |
102 | .data = &rds_iw_sysctl_max_recv_allocation, | 97 | .data = &rds_iw_sysctl_max_recv_allocation, |
103 | .maxlen = sizeof(unsigned long), | 98 | .maxlen = sizeof(unsigned long), |
@@ -105,20 +100,19 @@ ctl_table rds_iw_sysctl_table[] = { | |||
105 | .proc_handler = &proc_doulongvec_minmax, | 100 | .proc_handler = &proc_doulongvec_minmax, |
106 | }, | 101 | }, |
107 | { | 102 | { |
108 | .ctl_name = CTL_UNNUMBERED, | ||
109 | .procname = "flow_control", | 103 | .procname = "flow_control", |
110 | .data = &rds_iw_sysctl_flow_control, | 104 | .data = &rds_iw_sysctl_flow_control, |
111 | .maxlen = sizeof(rds_iw_sysctl_flow_control), | 105 | .maxlen = sizeof(rds_iw_sysctl_flow_control), |
112 | .mode = 0644, | 106 | .mode = 0644, |
113 | .proc_handler = &proc_dointvec, | 107 | .proc_handler = &proc_dointvec, |
114 | }, | 108 | }, |
115 | { .ctl_name = 0} | 109 | { } |
116 | }; | 110 | }; |
117 | 111 | ||
118 | static struct ctl_path rds_iw_sysctl_path[] = { | 112 | static struct ctl_path rds_iw_sysctl_path[] = { |
119 | { .procname = "net", .ctl_name = CTL_NET, }, | 113 | { .procname = "net", }, |
120 | { .procname = "rds", .ctl_name = CTL_UNNUMBERED, }, | 114 | { .procname = "rds", }, |
121 | { .procname = "iw", .ctl_name = CTL_UNNUMBERED, }, | 115 | { .procname = "iw", }, |
122 | { } | 116 | { } |
123 | }; | 117 | }; |
124 | 118 | ||