diff options
| author | Jakub Kicinski <[email protected]> | 2024-05-10 00:57:04 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-05-11 01:22:00 +0000 |
| commit | 2d3b8dfd82d76b1295167c6453d683ab99e50794 (patch) | |
| tree | d5be1e2774ae66fbb2870e4aea357c8503fd7567 /rust/helpers.c | |
| parent | virtio_net: Fix memory leak in virtnet_rx_mod_work (diff) | |
| download | kernel-2d3b8dfd82d76b1295167c6453d683ab99e50794.tar.gz kernel-2d3b8dfd82d76b1295167c6453d683ab99e50794.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
