]> 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)
commit633c4652ae9bb4d481dede40934bbd2684037f8a
treea08a8477ae7bc23fffaff47b3ce0ff959567f9d3
parent7f8587b15ebc0576571581ccda84d4b5e60ce741
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