]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7526c6b8aceff0e7da73e1d3003ecb04bb08001
treedf9bbf78348fa7d051a7de7554436d3186a3c2c8
parent70af86a81184bd3111c2ce7dcee00986336e60fe
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