selftests: mptcp: try to set mptcp ulp mode in different sk states
authorFlorian Westphal <fw@strlen.de>
Fri, 17 Dec 2021 23:37:01 +0000 (15:37 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 18 Dec 2021 03:27:04 +0000 (19:27 -0800)
commitf730b65c9d85c84d6e5fd5f6fee20e2d62ffe558
treedf9bbf78348fa7d051a7de7554436d3186a3c2c8
parent3ce0852c86b926aed7bb8c69b09c5ad4ba0a9dfb
selftests: mptcp: try to set mptcp ulp mode in different sk states

The kernel will crash without
'mptcp: clear 'kern' flag from fallback sockets' change.

Since this doesn't slow down testing in a noticeable way,
run this unconditionally.

The explicit test did not catch this, because the check was done
for tcp socket returned by 'socket(.. IPPROTO_TCP) rather than a
tcp socket returned by accept() on a mptcp listen fd.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_connect.c
tools/testing/selftests/net/mptcp/mptcp_connect.sh