]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: remove net sctp.x_enable working as a global switch
authorXin Long <lucien.xin@gmail.com>
Mon, 19 Aug 2019 14:02:50 +0000 (22:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2019 01:27:29 +0000 (18:27 -0700)
commit975f52cbdd7dc323c29e8704364bc1c5ca8d4013
tree2d4274ee809c8bf6a22e1b96a32f5065397586cc
parent9d0379dbb88b98b708b94a6c36941bccaff62857
sctp: remove net sctp.x_enable working as a global switch

The netns sctp feature flags shouldn't work as a global switch,
which is mostly like a firewall/netfilter's job. Also, it will
break asoc as it discard or accept chunks incorrectly when net
sctp.x_enable is changed after the asoc is created.

Since each type of chunk's processing function will check the
corresp asoc's feature flag, this 'global switch' should be
removed, and net sctp.x_enable will only work as the default
feature flags for the future sctp sockets/endpoints.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_statetable.c