selftests: mptcp: update userspace pm subflow tests
authorGeliang Tang <geliang.tang@suse.com>
Mon, 5 Jun 2023 03:25:20 +0000 (20:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jun 2023 14:15:57 +0000 (15:15 +0100)
commit6c160b636c91e71e50c39134f78257cc35305ff0
tree671bf294793b5d164f5d0905f2e163d2685ed686
parent24430f8bf51655c5ab7ddc2fafe939dd3cd0dd47
selftests: mptcp: update userspace pm subflow tests

To align with what is done by the in-kernel PM, update userspace pm
subflow selftests, by sending the a remove_addrs command together
before the remove_subflows command. This will get a RM_ADDR in
chk_rm_nr().

Fixes: d9a4594edabf ("mptcp: netlink: Add MPTCP_PM_CMD_REMOVE")
Fixes: 5e986ec46874 ("selftests: mptcp: userspace pm subflow tests")
Link: https://github.com/multipath-tcp/mptcp_net-next/issues/379
Cc: stable@vger.kernel.org
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/mptcp/mptcp_join.sh