]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftest: mptcp: add test for mptcp socket in use
authorMenglong Dong <imagedong@tencent.com>
Fri, 6 Jan 2023 18:57:25 +0000 (10:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jan 2023 07:30:50 +0000 (07:30 +0000)
commite04a30f788091076ff874ede84d33817d50d5937
tree37deff151d04b6680ec2d30cf2e92763642c73d4
parent4a753ca5013d465694d6639fbe1378831a399bda
selftest: mptcp: add test for mptcp socket in use

Add the function chk_msk_inuse() to diag.sh, which is used to check the
statistics of mptcp socket in use. As mptcp socket in listen state will
be closed randomly after 'accept', we need to get the count of listening
mptcp socket through 'ss' command.

All tests pass.

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Menglong Dong <imagedong@tencent.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/mptcp/diag.sh