diff options
| author | Geliang Tang <[email protected]> | 2024-04-05 12:52:09 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-04-08 11:53:20 +0100 |
| commit | 0d16ed0c2e743a721e372c64be73b828a0cf7cb9 (patch) | |
| tree | 527ac5814a823f1c55eb67dcd1230d0c40ede4d9 /tools/perf/scripts/python/sched-migration.py | |
| parent | 3188309c8ceb0611d0a6e9d1aca8464099695b8c (diff) | |
selftests: mptcp: add {get,format}_endpoint(s) helpers
The output formats of 'ip mptcp' commands are much different from that
of 'pm_nl_ctl' commands.
This patch adds a new helper format_endpoints() to format the outputs of
'ip mptcp' and 'pm_nl_ctl' with 'endpoints' arguments to hide these
differences.
A new helper named get_endpoint() has also been added to show a specific
endpoint identified by the given address ID, similar to mptcp_join.sh's
pm_nl_show_endpoints() helper, but showing all entries.
Use these two helpers in mptcp_join.sh and pm_netlink.sh to replace all
'pm_nl_ctl get' commands and outputs of 'pm_nl_ctl dump/get'.
Suggested-by: Matthieu Baerts (NGI0) <[email protected]>
Signed-off-by: Geliang Tang <[email protected]>
Reviewed-by: Matthieu Baerts (NGI0) <[email protected]>
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions