]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mptcp: add disconnect tests
authorPaolo Abeni <pabeni@redhat.com>
Fri, 7 Jan 2022 00:20:19 +0000 (16:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Jan 2022 11:27:07 +0000 (11:27 +0000)
commit05be5e273c84f6329b3cac4f5bb7b1fe6eaefd5d
treea08a8477ae7bc23fffaff47b3ce0ff959567f9d3
parent3d1d6d66e15612801bec79b190af746622f0d427
selftests: mptcp: add disconnect tests

Performs several disconnect/reconnect on the same socket,
ensuring the overall transfer is succesful.

The new test leverages ioctl(SIOCOUTQ) to ensure all the
pending data is acked before disconnecting.

Additionally order alphabetically the test program arguments list
for better maintainability.

Signed-off-by: Paolo Abeni <pabeni@redhat.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/mptcp_connect.c
tools/testing/selftests/net/mptcp/mptcp_connect.sh