summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorGeliang Tang <geliang.tang@suse.com>2022-02-05 03:03:33 +0300
committerJakub Kicinski <kuba@kernel.org>2022-02-05 07:30:24 +0300
commitdda61b3dbea09b3c6d84f3c3f5e39b2e19a329dc (patch)
tree2f911e345ed7da89ef728c4d15ed1fb13a09922f /tools/perf/scripts/python/libxed.py
parent34aa6e3bccd8620ca07f47b52dfd144c2418690a (diff)
downloadlinux-dda61b3dbea09b3c6d84f3c3f5e39b2e19a329dc.tar.xz
selftests: mptcp: add wrapper for showing addrs
This patch implemented a new function named pm_nl_show_endpoints(), wrapped the PM netlink commands 'ip mptcp endpoint show' and 'pm_nl_ctl dump' in it, used a new argument 'ip_mptcp' to choose which one to use to show all the PM endpoints. Used this wrapper in do_transfer() instead of using the pm_nl_ctl commands directly. The original 'pos+=5' in the remoing tests only works for the output of 'pm_nl_ctl show': id 1 flags subflow 10.0.1.1 It doesn't work for the output of 'ip mptcp endpoint show': 10.0.1.1 id 1 subflow So implemented a more flexible approach to get the address ID from the PM dump output to fit for both commands. 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>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions