We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8a9eb7 commit 4e3a531Copy full SHA for 4e3a531
net/ipv4/tcp_dctcp.c
@@ -59,7 +59,18 @@ struct dctcp {
59
};
60
61
static unsigned int dctcp_shift_g __read_mostly = 4; /* g = 1/2^4 */
62
-module_param(dctcp_shift_g, uint, 0644);
+
63
+static int dctcp_shift_g_set(const char *val, const struct kernel_param *kp)
64
+{
65
+ return param_set_uint_minmax(val, kp, 0, 10);
66
+}
67
68
+static const struct kernel_param_ops dctcp_shift_g_ops = {
69
+ .set = dctcp_shift_g_set,
70
+ .get = param_get_uint,
71
+};
72
73
+module_param_cb(dctcp_shift_g, &dctcp_shift_g_ops, &dctcp_shift_g, 0644);
74
MODULE_PARM_DESC(dctcp_shift_g, "parameter g for updating dctcp_alpha");
75
76
static unsigned int dctcp_alpha_on_init __read_mostly = DCTCP_MAX_ALPHA;
0 commit comments