Skip to content
  • Xin Long's avatar
    sctp: remove net sctp.x_enable working as a global switch · 2f757634
    Xin Long authored
    
    
    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: default avatarXin Long <lucien.xin@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    2f757634