aboutsummaryrefslogtreecommitdiff
path: root/lib/closure.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2024-05-09 17:57:04 -0700
committerJakub Kicinski <kuba@kernel.org>2024-05-10 18:22:00 -0700
commit2d3b8dfd82d76b1295167c6453d683ab99e50794 (patch)
treed5be1e2774ae66fbb2870e4aea357c8503fd7567 /lib/closure.c
parentb49bd37f0bfd7bbfedd54085d5ea4e854778d283 (diff)
selftests: net: fix timestamp not arriving in cmsg_time.sh
On slow machines the SND timestamp sometimes doesn't arrive before we quit. The test only waits as long as the packet delay, so it's easy for a race condition to happen. Double the wait but do a bit of polling, once the SND timestamp arrives there's no point to wait any longer. This fixes the "TXTIME abs" failures on debug kernels, like: Case ICMPv4 - TXTIME abs returned '', expected 'OK' Reviewed-by: Willem de Bruijn <willemb@google.com> Link: https://lore.kernel.org/r/20240510005705.43069-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/closure.c')
0 files changed, 0 insertions, 0 deletions