Skip to content

Commit 1cff6bb

Browse files
Geliang Tangintel-lab-lkp
authored andcommitted
selftests: mptcp: join: update userspace dump_addr outputs
Now address entries only be removed from local_addr_list when sending a REMOVE_ADDR by the userspace PM, they're no longer removed when a subflow is deleted. To make userspace PM selftests in mptcp_join.sh pass, this patch updates the outputs of dump_addr. Signed-off-by: Geliang Tang <[email protected]>
1 parent 3efaed5 commit 1cff6bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/testing/selftests/net/mptcp/mptcp_join.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3625,9 +3625,9 @@ userspace_tests()
36253625
userspace_pm_chk_get_addr "${ns1}" "20" "id 20 flags signal 10.0.3.1"
36263626
userspace_pm_rm_sf $ns1 "::ffff:10.0.2.1" $MPTCP_LIB_EVENT_SUB_ESTABLISHED
36273627
userspace_pm_chk_dump_addr "${ns1}" \
3628-
"id 20 flags signal 10.0.3.1" "after rm_sf 10"
3628+
$'id 10 flags signal 10.0.2.1\nid 20 flags signal 10.0.3.1' "after rm_sf 10"
36293629
userspace_pm_rm_addr $ns1 20
3630-
userspace_pm_chk_dump_addr "${ns1}" "" "after rm_addr 20"
3630+
userspace_pm_chk_dump_addr "${ns1}" "id 10 flags signal 10.0.2.1" "after rm_addr 20"
36313631
chk_rm_nr 1 1 invert
36323632
chk_mptcp_info subflows 0 subflows 0
36333633
chk_subflows_total 1 1
@@ -3654,7 +3654,7 @@ userspace_tests()
36543654
userspace_pm_chk_get_addr "${ns2}" "20" "id 20 flags subflow 10.0.3.2"
36553655
userspace_pm_rm_sf $ns2 10.0.3.2 $MPTCP_LIB_EVENT_SUB_ESTABLISHED
36563656
userspace_pm_chk_dump_addr "${ns2}" \
3657-
"" \
3657+
"id 20 flags subflow 10.0.3.2" \
36583658
"after rm_sf 20"
36593659
chk_rm_nr 0 1
36603660
chk_mptcp_info subflows 0 subflows 0

0 commit comments

Comments
 (0)