The RM_ADDR selftests will fail when the removing address id is 0:
copyfd_io_poll: poll timed out (events: POLLIN 1, POLLOUT 0)
copyfd_io_poll: poll timed out (events: POLLIN 1, POLLOUT 0)
client exit code 2, server 2
netns ns1-0-7z6ol9 socket stat for 10009:
State Recv-Q Send-Q
Local Address:Port Peer
Address:Port Process
netns ns2-0-7z6ol9 socket stat for 10009:
State Recv-Q Send-Q
Local Address:Port Peer Address:Port
Process
TIME-WAIT 0 0
10.0.2.2:33225 10.0.2.1:10009
timer:(timewait,26sec,0)
TIME-WAIT 0 0
10.0.4.2:44309 10.0.4.1:10009
timer:(timewait,26sec,0)
TIME-WAIT 0 0
10.0.3.2:53671 10.0.3.1:10009
timer:(timewait,26sec,0)
10 flush addresses syn[ ok ] - synack[ ok ] - ack[ ok ]
add[ ok ] - echo [ ok ]
rm [ ok ] - sf [ ok ]
This patchset fixed this bug.
v2:
- drop __mptcp_wr_shutdown in v1.
apply: export/20210222T184014
move to next addr and testcases
move to next addr when timeout
Closes:
https://github.com/multipath-tcp/mptcp_net-next/issues/140
Geliang Tang (3):
mptcp: unify RM_ADDR and RM_SUBFLOW receiving
mptcp: skip closing the initial subsocket
DO-NOT-MERGE: mptcp: remove id 0 test
net/mptcp/pm_netlink.c | 94 +++++++++----------
.../testing/selftests/net/mptcp/mptcp_join.sh | 8 +-
2 files changed, 47 insertions(+), 55 deletions(-)
--
2.29.2