]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/net: fix out-of-order delivery of FIN in gro:tcp test
authorAnubhav Singh <anubhavsinggh@google.com>
Thu, 30 Oct 2025 06:28:18 +0000 (06:28 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 1 Nov 2025 00:32:24 +0000 (17:32 -0700)
commit02d064de05b1fcca769391fa82d205bed8bb9bf0
tree88b8a6aff4937f3ed43400403afbdd6edd2b85c5
parent3d18a84eddde169d6dbf3c72cc5358b988c347d0
selftests/net: fix out-of-order delivery of FIN in gro:tcp test

Due to the gro_sender sending data packets and FIN packets
in very quick succession, these are received almost simultaneously
by the gro_receiver. FIN packets are sometimes processed before the
data packets leading to intermittent (~1/100) test failures.

This change adds a delay of 100ms before sending FIN packets
in gro:tcp test to avoid the out-of-order delivery. The same
mitigation already exists for the gro:ip test.

Fixes: 7d1575014a63 ("selftests/net: GRO coalesce test")
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Anubhav Singh <anubhavsinggh@google.com>
Link: https://patch.msgid.link/20251030062818.1562228-1-anubhavsinggh@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/gro.c