selftests: mptcp: add the flush addrs testcase
authorGeliang Tang <geliangtang@gmail.com>
Thu, 10 Dec 2020 22:25:00 +0000 (14:25 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Dec 2020 01:30:06 +0000 (17:30 -0800)
commit6fe4ccdc3dabe3de573e27fb2684d925bd611458
treed2492fe95e1432200eedf11f11e4b3c72450d8fb
parent141694df6573b49aa4143c92556544b4b0bbda72
selftests: mptcp: add the flush addrs testcase

This patch added the flush addrs testcase. In do_transfer, if the number
of removing addresses is less than 8, use the del addr command to remove
the addresses one by one. If the number is more than 8, use the flush addrs
command to remove the addresses.

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_join.sh