mptcp: sockopt: add TCP_CONGESTION and TCP_INFO
authorFlorian Westphal <fw@strlen.de>
Thu, 15 Apr 2021 23:45:01 +0000 (16:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Apr 2021 22:23:10 +0000 (15:23 -0700)
commitaa1fbd94e5c7d3a356058b4ee4a455d952dd48aa
treee45cd4aca99fc8c12db362f8db50c2b1387f7ac1
parenta03c99b253c232d7d305c9dd476b5b120841dff7
mptcp: sockopt: add TCP_CONGESTION and TCP_INFO

TCP_CONGESTION is set for all subflows.
The mptcp socket gains icsk_ca_ops too so it can be used to keep the
authoritative state that should be set on new/future subflows.

TCP_INFO will return first subflow only.
The out-of-tree kernel has a MPTCP_INFO getsockopt, this could be added
later on.

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c
net/mptcp/sockopt.c