diff options
| author | Geliang Tang <[email protected]> | 2022-02-05 00:03:33 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-02-05 04:30:24 +0000 |
| commit | dda61b3dbea09b3c6d84f3c3f5e39b2e19a329dc (patch) | |
| tree | 2f911e345ed7da89ef728c4d15ed1fb13a09922f /net/openvswitch/flow.c | |
| parent | selftests: mptcp: add ip mptcp wrappers (diff) | |
| download | kernel-dda61b3dbea09b3c6d84f3c3f5e39b2e19a329dc.tar.gz kernel-dda61b3dbea09b3c6d84f3c3f5e39b2e19a329dc.zip | |
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 <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/openvswitch/flow.c')
0 files changed, 0 insertions, 0 deletions
