]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: mptcp: add a check for sndbuf of S/C
authorGang Yan <yangang@kylinos.cn>
Mon, 20 Apr 2026 16:19:24 +0000 (18:19 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 23 Apr 2026 11:20:17 +0000 (13:20 +0200)
commitd0576eb8508e68b950ee9d2820116a6fc205fd07
treed56bb91cb98e9a6315b3abf54da8c213e6e47913
parentfcf04b14334641f4b0b8647824480935e9416d52
selftests: mptcp: add a check for sndbuf of S/C

Add a new chk_sndbuf() helper to diag.sh that extracts the sndbuf
(the 'tb' field from 'ss -m' skmem output) for both server and
client MPTCP sockets, and verifies they are equal.

Without the previous patch, it will fail:

'''
07 ....chk sndbuf server/client    [FAIL] sndbuf S=20480 != C=2630656
'''

Signed-off-by: Gang Yan <yangang@kylinos.cn>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20260420-net-mptcp-sync-sndbuf-accept-v1-2-e3523e3aeb44@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/mptcp/diag.sh