Hi Geliang,
On 16/02/2024 10:50, Geliang Tang wrote:
> From: Geliang Tang <tanggeliang@kylinos.cn>
>
> Commands 'ss -M' are used in scripts mptcp_connect.sh, mptcp_join.sh,
> and mptcp_sockopt.sh to display only MPTCP sockets. So it must be checked
> if ss tool supports MPTCP in these script.
I think you missed my comment from v1: 'ss' is used in mptcp_connect.sh
and mptcp_sockopt.sh, but only in case of errors, to get more info. They
are not strictly needed to run the tests, no?
I think it would be better not to skip the two selftests *entirely* if
'ss' doesn't support MPTCP.
For 'mptcp_join.sh', it is different, because 'ss' with MPTCP support is
needed for some tests, since:
Fixes: e274f7154008 ("selftests: mptcp: add subflow limits test-cases")
(Even there, it is mandatory just for one subtest... In fact, I wonder
if we should not use 'chk_subflows_total' instead, it doesn't require
'ss -M' support.)
So in other words, I think we should only modify 'mptcp_join.sh', no?
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.