linux/tools/testing/selftests/net
Matthieu Baerts (NGI0) 5368a67307 selftests: mptcp: connect: -f: no reconnect
The '-f' parameter is there to force the kernel to emit MPTCP FASTCLOSE
by closing the connection with unread bytes in the receive queue.

The xdisconnect() helper was used to stop the connection, but it does
more than that: it will shut it down, then wait before reconnecting to
the same address. This causes the mptcp_join's "fastclose test" to fail
all the time.

This failure is due to a recent change, with commit 218cc16632
("selftests: mptcp: avoid spurious errors on disconnect"), but that went
unnoticed because the test is currently ignored. The recent modification
only shown an existing issue: xdisconnect() doesn't need to be used
here, only the shutdown() part is needed.

Fixes: 6bf41020b7 ("selftests: mptcp: update and extend fastclose test-cases")
Cc: stable@vger.kernel.org
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250204-net-mptcp-sft-conn-f-v1-1-6b470c72fffa@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-02-05 17:54:32 -08:00
..
af_unix af_unix: Don't return OOB skb in manage_oob(). 2024-09-09 17:14:27 -07:00
forwarding selftests/net/forwarding: teamd command not found 2025-01-15 14:14:40 -08:00
hsr selftests: hsr: Add test for VLAN 2024-11-11 16:40:44 -08:00
lib selftests: net/{lib,openvswitch}: extend CFLAGS to keep options from environment 2025-01-27 14:45:27 -08:00
mptcp selftests: mptcp: connect: -f: no reconnect 2025-02-05 17:54:32 -08:00
netfilter selftests: netfilter: Stabilize rpath.sh 2024-12-11 23:15:17 +01:00
openvswitch selftests: net/{lib,openvswitch}: extend CFLAGS to keep options from environment 2025-01-27 14:45:27 -08:00
packetdrill selftests/net: packetdrill: more xfail changes (and a correction) 2025-01-23 07:07:41 -08:00
rds selftests: rds: move test.py to TEST_FILES 2024-11-28 10:20:17 +01:00
tcp_ao selftest/tcp-ao: Add filter tests 2024-10-28 15:53:50 -07:00
.gitignore Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-11-14 11:29:15 -08:00
Makefile selftests: net: Add a VLAN bridge binding selftest 2024-12-20 13:14:17 -08:00
altnames.sh
amt.sh
arp_ndisc_evict_nocarrier.sh
arp_ndisc_untracked_subnets.sh
bareudp.sh
big_tcp.sh
bind_bhash.c
bind_bhash.sh
bind_timewait.c
bind_wildcard.c
bpf.mk
bpf_offload.py selftests/net: Add test for loading devbound XDP program in generic mode 2025-01-29 19:04:23 -08:00
busy_poll_test.sh selftests: net: Add busy_poll_test 2024-11-11 18:45:06 -08:00
busy_poller.c selftests: net: cleanup busy_poller.c 2024-12-06 17:42:15 -08:00
cmsg_ipv6.sh
cmsg_sender.c selftests: net: test SO_PRIORITY ancillary data with cmsg_sender 2024-12-16 18:14:12 -08:00
cmsg_so_mark.sh
cmsg_so_priority.sh selftests: net: test SO_PRIORITY ancillary data with cmsg_sender 2024-12-16 18:14:12 -08:00
cmsg_time.sh selftests: net: give up on the cmsg_time accuracy on slow machines 2025-01-17 18:36:14 -08:00
config selftests: net: add new ioam tests 2024-10-04 15:34:07 -07:00
drop_monitor_tests.sh selftests: net: lib: Add kill_process 2024-11-15 16:39:19 -08:00
epoll_busy_poll.c
fcnal-test.sh selftests: net: add helper for checking if nettest is available 2024-08-22 12:55:47 +02:00
fdb_flush.sh
fdb_notify.sh selftests: net: lib: Rename ip_link_master() to ip_link_set_master() 2024-12-09 14:47:05 -08:00
fib-onlink-tests.sh
fib_nexthop_multiprefix.sh
fib_nexthop_nongw.sh
fib_nexthops.sh selftests: fib_nexthops: Test 16-bit next hop weights 2024-08-12 17:50:35 -07:00
fib_rule_tests.sh selftests: fib_rule_tests: Add flow label selector match tests 2024-12-19 16:02:22 +01:00
fib_tests.sh selftests: net: lib: Add kill_process 2024-11-15 16:39:19 -08:00
fin_ack_lat.c
fin_ack_lat.sh
fq_band_pktlimit.sh
gre_gso.sh
gro.c
gro.sh
hwtstamp_config.c
icmp.sh
icmp_redirect.sh
in_netns.sh
io_uring_zerocopy_tx.c
io_uring_zerocopy_tx.sh
ioam6.sh selftests: net: add new ioam tests 2024-10-04 15:34:07 -07:00
ioam6_parser.c selftests: net: add new ioam tests 2024-10-04 15:34:07 -07:00
ip6_gre_headroom.sh
ip_defrag.c
ip_defrag.sh
ip_local_port_range.c
ip_local_port_range.sh
ipsec.c selftests/net/ipsec: Fix Null pointer dereference in rtattr_pack() 2025-01-20 11:25:25 -08:00
ipv6_flowlabel.c
ipv6_flowlabel.sh
ipv6_flowlabel_mgr.c
ipv6_route_update_soft_lockup.sh ipv6: Fix soft lockups in fib6_select_path under high next hop churn 2024-11-11 15:26:10 -08:00
l2_tos_ttl_inherit.sh
l2tp.sh
lib.sh selftests: net: lib: Add a couple autodefer helpers 2024-12-20 13:14:17 -08:00
msg_zerocopy.c selftests: make order checking verbose in msg_zerocopy selftest 2024-07-03 19:42:32 -07:00
msg_zerocopy.sh
nat6to4.bpf.c
ndisc_unsolicited_na_test.sh
net_helper.sh
netdevice.sh selftests: net: Use XFAIL for operations not supported by the driver 2024-08-22 16:56:06 -07:00
netlink-dumps.c selftests: net: test extacks in netlink dumps 2024-11-24 17:00:06 -08:00
netns-name.sh
netns-sysctl.sh
nettest.c
nl_netdev.py selftests: net: test listing NAPI vs queue resets 2025-01-09 15:33:09 +01:00
pmtu.sh net: ipv4: Cache pmtu for all packet paths if multipath enabled 2024-11-11 19:07:36 -08:00
psock_fanout.c selftests: net/psock_fanout: unbound socket fanout 2024-10-15 09:52:36 -07:00
psock_lib.h
psock_snd.c
psock_snd.sh
psock_tpacket.c
reuseaddr_conflict.c
reuseaddr_ports_exhausted.c
reuseaddr_ports_exhausted.sh
reuseport_addr_any.c
reuseport_addr_any.sh
reuseport_bpf.c
reuseport_bpf_cpu.c
reuseport_bpf_numa.c
reuseport_dualstack.c
route_localnet.sh
rps_default_mask.sh
rtnetlink.sh selftests/rtnetlink.sh: add mngtempaddr test 2024-11-26 10:29:12 +01:00
run_afpackettests
run_netsocktests
rxtimestamp.c net-timestamp: add selftests for SOF_TIMESTAMPING_OPT_RX_FILTER 2024-09-10 16:55:23 -07:00
rxtimestamp.sh
sample_map_ret0.bpf.c
sample_ret0.bpf.c
sctp_hello.c
sctp_vrf.sh
settings
setup_loopback.sh
setup_veth.sh
sk_bind_sendto_listen.c
sk_connect_zero_addr.c
sk_so_peek_off.c selftests: add selftest for UDP SO_PEEK_OFF support 2024-09-04 13:10:43 +01:00
so_incoming_cpu.c
so_netns_cookie.c
so_txtime.c
so_txtime.sh
socket.c
srv6_end_dt4_l3vpn_test.sh
srv6_end_dt6_l3vpn_test.sh
srv6_end_dt46_l3vpn_test.sh
srv6_end_dx4_netfilter_test.sh
srv6_end_dx6_netfilter_test.sh
srv6_end_flavors_test.sh
srv6_end_next_csid_l3vpn_test.sh
srv6_end_x_next_csid_l3vpn_test.sh
srv6_hencap_red_l3vpn_test.sh
srv6_hl2encap_red_l2vpn_test.sh
stress_reuseport_listen.c
stress_reuseport_listen.sh
tap.c
tcp_fastopen_backup_key.c
tcp_fastopen_backup_key.sh
tcp_inq.c
tcp_mmap.c
test_blackhole_dev.sh
test_bpf.sh
test_bridge_backup_port.sh
test_bridge_neigh_suppress.sh
test_ingress_egress_chaining.sh
test_vxlan_fdb_changelink.sh
test_vxlan_mdb.sh
test_vxlan_nolocalbypass.sh
test_vxlan_under_vrf.sh
test_vxlan_vnifiltering.sh
timestamping.c
tls.c selftests: tls: add rekey tests 2024-12-16 12:47:30 +00:00
toeplitz.c
toeplitz.sh
toeplitz_client.sh
traceroute.sh
tun.c
txring_overwrite.c
txtimestamp.c selftests: txtimestamp: add SCM_TS_OPT_ID test 2024-10-04 11:52:20 -07:00
txtimestamp.sh selftests: txtimestamp: add SCM_TS_OPT_ID test 2024-10-04 11:52:20 -07:00
udpgro.sh selftests: udpgro: no need to load xdp for gro 2024-08-19 09:54:24 +01:00
udpgro_bench.sh
udpgro_frglist.sh
udpgro_fwd.sh
udpgso.c udp: gso: do not drop small packets when PMTU reduces 2025-02-03 10:13:27 +00:00
udpgso.sh selftests/net: Add test coverage for UDP GSO software fallback 2024-06-28 18:13:00 -07:00
udpgso_bench.sh selftests/net: call sendmmsg via udpgso_bench.sh 2024-12-04 19:22:20 -08:00
udpgso_bench_rx.c
udpgso_bench_tx.c
unicast_extensions.sh selftests: net: add helper for checking if nettest is available 2024-08-22 12:55:47 +02:00
veth.sh selftests/net: Fix ./ns-XXXXXX not cleanup 2024-10-31 19:21:36 -07:00
vlan_bridge_binding.sh selftests: net: Add a VLAN bridge binding selftest 2024-12-20 13:14:17 -08:00
vlan_hw_filter.sh
vrf-xfrm-tests.sh
vrf_route_leaking.sh selftests: net: add helper for checking if nettest is available 2024-08-22 12:55:47 +02:00
vrf_strict_mode_test.sh
xdp_dummy.bpf.c
xfrm_policy.sh
xfrm_policy_add_speed.sh selftests: add xfrm policy insertion speed test script 2024-08-24 09:55:01 +02:00
ynl.mk tools: ynl: move python code to separate sub-directory 2025-01-09 12:53:27 -08:00