]> www.infradead.org Git - nvme.git/commit
selftests/net: Repair RST passive reset selftest
authorDmitry Safonov <dima@arista.com>
Tue, 30 Jan 2024 03:51:54 +0000 (03:51 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Feb 2024 00:33:30 +0000 (16:33 -0800)
commit6caf3adcc877b3470e98133d52b360ebe5f7a6a3
tree8805c016e8a883d17e1535e6f21f85a45de33add
parent384aa16d3776a9ca5c0c1f1e7af4030fe176a993
selftests/net: Repair RST passive reset selftest

Currently, the test is racy and seems to not pass anymore.

In order to rectify it, aim on TCP_TW_RST.
Doesn't seem way too good with this sleep() part, but it seems as
a reasonable compromise for the test. There is a plan in-line comment on
how-to improve it, going to do it on the top, at this moment I want it
to run on netdev/patchwork selftests dashboard.

It also slightly changes tcp_ao-lib in order to get SO_ERROR propagated
to test_client_verify() return value.

Fixes: c6df7b2361d7 ("selftests/net: Add TCP-AO RST test")
Signed-off-by: Dmitry Safonov <dima@arista.com>
Link: https://lore.kernel.org/r/20240130-tcp-ao-test-key-mgmt-v2-3-d190430a6c60@arista.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/tcp_ao/lib/sock.c
tools/testing/selftests/net/tcp_ao/rst.c