]> asedeno.scripts.mit.edu Git - linux.git/commit
sctp: add stream interleave enable members and sockopt
authorXin Long <lucien.xin@gmail.com>
Fri, 8 Dec 2017 13:03:58 +0000 (21:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2017 16:23:04 +0000 (11:23 -0500)
commit772a58693fc3116d05b7969223a80a6376e639eb
tree2b164a1e1645470a05d36c4636e9f8e45962e38d
parent92ff42645028fa6f9b8aa767718457b9264316b4
sctp: add stream interleave enable members and sockopt

This patch adds intl_enable in asoc and netns, and strm_interleave in
sctp_sock to indicate if stream interleave is enabled and supported.

netns intl_enable would be set via procfs, but that is not added yet
until all stream interleave codes are completely implemented; asoc
intl_enable will be set when doing 4-shakehands.

sp strm_interleave can be set by sockopt SCTP_INTERLEAVING_SUPPORTED
which is also added in this patch. This socket option is defined in
section 4.3.1 of RFC8260.

Note that strm_interleave can only be set by sockopt when both netns
intl_enable and sp frag_interleave are set.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/sctp.h
include/net/sctp/structs.h
include/uapi/linux/sctp.h
net/sctp/socket.c