Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: mptcp: join: add ss mptcp support check

Commands 'ss -M' are used in script mptcp_join.sh to display only MPTCP
sockets. So it must be checked if ss tool supports MPTCP in this script.

Fixes: e274f7154008 ("selftests: mptcp: add subflow limits test-cases")
Cc: stable@vger.kernel.org
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://lore.kernel.org/r/20240223-upstream-net-20240223-misc-fixes-v1-7-162e87e48497@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Geliang Tang and committed by
Jakub Kicinski
9480f388 b111d8fb

+5
+5
tools/testing/selftests/net/mptcp/mptcp_join.sh
··· 161 161 exit $ksft_skip 162 162 fi 163 163 164 + if ! ss -h | grep -q MPTCP; then 165 + echo "SKIP: ss tool does not support MPTCP" 166 + exit $ksft_skip 167 + fi 168 + 164 169 # Use the legacy version if available to support old kernel versions 165 170 if iptables-legacy -V &> /dev/null; then 166 171 iptables="iptables-legacy"