]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
sctp: support sysctl to allow users to use stream interleave
authorXin Long <lucien.xin@gmail.com>
Thu, 14 Dec 2017 16:41:32 +0000 (00:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 18:52:22 +0000 (13:52 -0500)
This is the last patch for support of stream interleave, after this patch,
users could enable stream interleave by systcl -w net.sctp.intl_enable=1.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo R. Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sysctl.c

index ef7ca44d6e6afdd818c1f920b97aebbda4962edb..33ca5b73cdb3af913cbf942a5cc4888132b0437b 100644 (file)
@@ -288,6 +288,13 @@ static struct ctl_table sctp_net_table[] = {
                .mode           = 0644,
                .proc_handler   = proc_sctp_do_auth,
        },
+       {
+               .procname       = "intl_enable",
+               .data           = &init_net.sctp.intl_enable,
+               .maxlen         = sizeof(int),
+               .mode           = 0644,
+               .proc_handler   = proc_dointvec,
+       },
        {
                .procname       = "addr_scope_policy",
                .data           = &init_net.sctp.scope_policy,