OSDN Git Service

selftests: mptcp: support MPTCP_PM_CMD_SUBFLOW_DESTROY
authorKishen Maloor <kishen.maloor@intel.com>
Wed, 4 May 2022 02:38:58 +0000 (19:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2022 09:49:32 +0000 (10:49 +0100)
commit57cc361b8d38d5fc4c97abe13094d72ea0cfe8c4
treec14840e0d2dbcb96ff342425d375760d8e5ec69c
parentcf8d0a6dfd649acd6b450444b56eb244cd2e86c1
selftests: mptcp: support MPTCP_PM_CMD_SUBFLOW_DESTROY

This change updates the "pm_nl_ctl" testing sample with a "dsf"
(destroy subflow) option to support the newly added netlink interface
command MPTCP_PM_CMD_SUBFLOW_DESTROY over the chosen MPTCP connection.

E.g. ./pm_nl_ctl dsf lip 10.0.2.1 lport 44567 rip 10.0.2.2 rport 56789
token 823274047

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Kishen Maloor <kishen.maloor@intel.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/pm_nl_ctl.c