OSDN Git Service

selftests: mptcp: simplify pm_nl_change_endpoint
authorGeliang Tang <geliang.tang@suse.com>
Fri, 18 Feb 2022 03:03:06 +0000 (19:03 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Feb 2022 03:59:58 +0000 (19:59 -0800)
commitbccefb7624395183e5602d168f4343b9ddbb72b9
treef7aa81434a026edfed10d0a497fe5c76bef49fed
parentd17b968b98761e30b94177f0f9a2f5d9aae15da2
selftests: mptcp: simplify pm_nl_change_endpoint

This patch simplified pm_nl_change_endpoint(), using id-based address
lookups only. And dropped the fragile way of parsing 'addr' and 'id'
from the output of pm_nl_show_endpoints().

Signed-off-by: Geliang Tang <geliang.tang@suse.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