]> 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)
commit154fd2bb800aad4dac57eeac9c5f6433f5d1eec4
treea08a8477ae7bc23fffaff47b3ce0ff959567f9d3
parenteb0ae2908f55136f8220672e4517003a0a106ede
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