sctp: make ecn flag per netns and endpoint
authorXin Long <lucien.xin@gmail.com>
Mon, 26 Aug 2019 08:30:02 +0000 (16:30 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Aug 2019 03:54:14 +0000 (20:54 -0700)
commit1b0b8114b9549dee6490e728cd787f808b586158
treef0fbb0c439b50d37c504e8a3e3df1d5b683d4021
parent7add83d93a94aaac79645414fd57d3c4b707d3be
sctp: make ecn flag per netns and endpoint

This patch is to add ecn flag for both netns_sctp and sctp_endpoint,
net->sctp.ecn_enable is set 1 by default, and ep->ecn_enable will
be initialized with net->sctp.ecn_enable.

asoc->peer.ecn_capable will be set during negotiation only when
ep->ecn_enable is set on both sides.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/sctp.h
include/net/sctp/structs.h
net/sctp/endpointola.c
net/sctp/protocol.c
net/sctp/sm_make_chunk.c