transport.c (46557bef3f3834ac33031c7be27d39d90d507442) | transport.c (6d4561110a3e9fa742aeec6717248a491dfb1878) |
---|---|
1/* 2 * Copyright (c) 2003-2007 Network Appliance, Inc. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the BSD-type 8 * license below: --- 72 unchanged lines hidden (view full) --- 81static unsigned int max_padding = PAGE_SIZE; 82static unsigned int min_memreg = RPCRDMA_BOUNCEBUFFERS; 83static unsigned int max_memreg = RPCRDMA_LAST - 1; 84 85static struct ctl_table_header *sunrpc_table_header; 86 87static ctl_table xr_tunables_table[] = { 88 { | 1/* 2 * Copyright (c) 2003-2007 Network Appliance, Inc. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the BSD-type 8 * license below: --- 72 unchanged lines hidden (view full) --- 81static unsigned int max_padding = PAGE_SIZE; 82static unsigned int min_memreg = RPCRDMA_BOUNCEBUFFERS; 83static unsigned int max_memreg = RPCRDMA_LAST - 1; 84 85static struct ctl_table_header *sunrpc_table_header; 86 87static ctl_table xr_tunables_table[] = { 88 { |
89 .ctl_name = CTL_UNNUMBERED, | |
90 .procname = "rdma_slot_table_entries", 91 .data = &xprt_rdma_slot_table_entries, 92 .maxlen = sizeof(unsigned int), 93 .mode = 0644, | 89 .procname = "rdma_slot_table_entries", 90 .data = &xprt_rdma_slot_table_entries, 91 .maxlen = sizeof(unsigned int), 92 .mode = 0644, |
94 .proc_handler = &proc_dointvec_minmax, 95 .strategy = &sysctl_intvec, | 93 .proc_handler = proc_dointvec_minmax, |
96 .extra1 = &min_slot_table_size, 97 .extra2 = &max_slot_table_size 98 }, 99 { | 94 .extra1 = &min_slot_table_size, 95 .extra2 = &max_slot_table_size 96 }, 97 { |
100 .ctl_name = CTL_UNNUMBERED, | |
101 .procname = "rdma_max_inline_read", 102 .data = &xprt_rdma_max_inline_read, 103 .maxlen = sizeof(unsigned int), 104 .mode = 0644, | 98 .procname = "rdma_max_inline_read", 99 .data = &xprt_rdma_max_inline_read, 100 .maxlen = sizeof(unsigned int), 101 .mode = 0644, |
105 .proc_handler = &proc_dointvec, 106 .strategy = &sysctl_intvec, | 102 .proc_handler = proc_dointvec, |
107 }, 108 { | 103 }, 104 { |
109 .ctl_name = CTL_UNNUMBERED, | |
110 .procname = "rdma_max_inline_write", 111 .data = &xprt_rdma_max_inline_write, 112 .maxlen = sizeof(unsigned int), 113 .mode = 0644, | 105 .procname = "rdma_max_inline_write", 106 .data = &xprt_rdma_max_inline_write, 107 .maxlen = sizeof(unsigned int), 108 .mode = 0644, |
114 .proc_handler = &proc_dointvec, 115 .strategy = &sysctl_intvec, | 109 .proc_handler = proc_dointvec, |
116 }, 117 { | 110 }, 111 { |
118 .ctl_name = CTL_UNNUMBERED, | |
119 .procname = "rdma_inline_write_padding", 120 .data = &xprt_rdma_inline_write_padding, 121 .maxlen = sizeof(unsigned int), 122 .mode = 0644, | 112 .procname = "rdma_inline_write_padding", 113 .data = &xprt_rdma_inline_write_padding, 114 .maxlen = sizeof(unsigned int), 115 .mode = 0644, |
123 .proc_handler = &proc_dointvec_minmax, 124 .strategy = &sysctl_intvec, | 116 .proc_handler = proc_dointvec_minmax, |
125 .extra1 = &zero, 126 .extra2 = &max_padding, 127 }, 128 { | 117 .extra1 = &zero, 118 .extra2 = &max_padding, 119 }, 120 { |
129 .ctl_name = CTL_UNNUMBERED, | |
130 .procname = "rdma_memreg_strategy", 131 .data = &xprt_rdma_memreg_strategy, 132 .maxlen = sizeof(unsigned int), 133 .mode = 0644, | 121 .procname = "rdma_memreg_strategy", 122 .data = &xprt_rdma_memreg_strategy, 123 .maxlen = sizeof(unsigned int), 124 .mode = 0644, |
134 .proc_handler = &proc_dointvec_minmax, 135 .strategy = &sysctl_intvec, | 125 .proc_handler = proc_dointvec_minmax, |
136 .extra1 = &min_memreg, 137 .extra2 = &max_memreg, 138 }, 139 { | 126 .extra1 = &min_memreg, 127 .extra2 = &max_memreg, 128 }, 129 { |
140 .ctl_name = CTL_UNNUMBERED, | |
141 .procname = "rdma_pad_optimize", 142 .data = &xprt_rdma_pad_optimize, 143 .maxlen = sizeof(unsigned int), 144 .mode = 0644, | 130 .procname = "rdma_pad_optimize", 131 .data = &xprt_rdma_pad_optimize, 132 .maxlen = sizeof(unsigned int), 133 .mode = 0644, |
145 .proc_handler = &proc_dointvec, | 134 .proc_handler = proc_dointvec, |
146 }, | 135 }, |
147 { 148 .ctl_name = 0, 149 }, | 136 { }, |
150}; 151 152static ctl_table sunrpc_table[] = { 153 { | 137}; 138 139static ctl_table sunrpc_table[] = { 140 { |
154 .ctl_name = CTL_SUNRPC, | |
155 .procname = "sunrpc", 156 .mode = 0555, 157 .child = xr_tunables_table 158 }, | 141 .procname = "sunrpc", 142 .mode = 0555, 143 .child = xr_tunables_table 144 }, |
159 { 160 .ctl_name = 0, 161 }, | 145 { }, |
162}; 163 164#endif 165 166static struct rpc_xprt_ops xprt_rdma_procs; /* forward reference */ 167 168static void 169xprt_rdma_format_addresses(struct rpc_xprt *xprt) --- 643 unchanged lines hidden --- | 146}; 147 148#endif 149 150static struct rpc_xprt_ops xprt_rdma_procs; /* forward reference */ 151 152static void 153xprt_rdma_format_addresses(struct rpc_xprt *xprt) --- 643 unchanged lines hidden --- |