33 #include <linux/kernel.h>
34 #include <linux/sysctl.h>
44 static unsigned long rds_iw_sysctl_max_wr_min = 1;
46 static unsigned long rds_iw_sysctl_max_wr_max = (
u32)~0;
49 static unsigned long rds_iw_sysctl_max_unsig_wr_min = 1;
50 static unsigned long rds_iw_sysctl_max_unsig_wr_max = 64;
53 static unsigned long rds_iw_sysctl_max_unsig_bytes_min = 1;
54 static unsigned long rds_iw_sysctl_max_unsig_bytes_max = ~0
UL;
58 static ctl_table rds_iw_sysctl_table[] = {
62 .maxlen =
sizeof(
unsigned long),
65 .extra1 = &rds_iw_sysctl_max_wr_min,
66 .extra2 = &rds_iw_sysctl_max_wr_max,
69 .procname =
"max_recv_wr",
71 .maxlen =
sizeof(
unsigned long),
74 .extra1 = &rds_iw_sysctl_max_wr_min,
75 .extra2 = &rds_iw_sysctl_max_wr_max,
78 .procname =
"max_unsignaled_wr",
80 .maxlen =
sizeof(
unsigned long),
83 .extra1 = &rds_iw_sysctl_max_unsig_wr_min,
84 .extra2 = &rds_iw_sysctl_max_unsig_wr_max,
87 .procname =
"max_unsignaled_bytes",
89 .maxlen =
sizeof(
unsigned long),
92 .extra1 = &rds_iw_sysctl_max_unsig_bytes_min,
93 .extra2 = &rds_iw_sysctl_max_unsig_bytes_max,
96 .procname =
"max_recv_allocation",
98 .maxlen =
sizeof(
unsigned long),
103 .procname =
"flow_control",
114 if (rds_iw_sysctl_hdr)
121 if (!rds_iw_sysctl_hdr)