Skip to content

Commit

Permalink
selftests: mptcp: flush userspace addrs list
Browse files Browse the repository at this point in the history
This patch adds some userspace addrs list flush commands in the
userspace tests. Without these changes, some tests will break.

Signed-off-by: Geliang Tang <[email protected]>
  • Loading branch information
geliangtang authored and intel-lab-lkp committed Nov 1, 2023
1 parent 3e51741 commit aa0ec28
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/testing/selftests/net/mptcp/userspace_pm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ test_subflows()
print_title "Subflows v4 or v6 only tests"

# Capture events on the network namespace running the server
ip netns exec "$ns1" ./pm_nl_ctl flush
:>"$server_evts"

# Attempt to add a listener at 10.0.2.2:<subflow-port>
Expand Down Expand Up @@ -638,6 +639,8 @@ test_subflows()
"$client6_token"
sleep 0.5

ip netns exec "$ns2" ./pm_nl_ctl flush

# Attempt to add a listener at 10.0.2.2:<new-port>
ip netns exec "$ns2" ./pm_nl_ctl listen 10.0.2.2\
$new4_port &
Expand Down Expand Up @@ -676,6 +679,7 @@ test_subflows()
"$client4_token"

# Capture events on the network namespace running the client
ip netns exec "$ns1" ./pm_nl_ctl flush
:>"$client_evts"

# Attempt to add a listener at 10.0.2.1:<subflow-port>
Expand Down Expand Up @@ -753,6 +757,8 @@ test_subflows()
"$server6_token"
sleep 0.5

ip netns exec "$ns1" ./pm_nl_ctl flush

# Attempt to add a listener at 10.0.2.1:<new-port>
ip netns exec "$ns1" ./pm_nl_ctl listen 10.0.2.1\
$new4_port &
Expand Down Expand Up @@ -794,6 +800,8 @@ test_subflows_v4_v6_mix()
{
print_title "Subflows v4 and v6 mix tests"

ip netns exec "$ns2" ./pm_nl_ctl flush

# Attempt to add a listener at 10.0.2.1:<subflow-port>
ip netns exec "$ns1" ./pm_nl_ctl listen 10.0.2.1\
$app6_port &
Expand Down

0 comments on commit aa0ec28

Please sign in to comment.