diff options
author | Jakub Kicinski <kuba@kernel.org> | 2024-05-10 03:57:04 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-27 14:52:15 +0300 |
commit | 82552bd04c9d2c40633d2e477cbab84dd5293af6 (patch) | |
tree | f5d3935369d267b83ab4aebf56b6ffabe678f61a /drivers/gpu/drm/lima/lima_pp.c | |
parent | f6824c5a98bcd6c8dc1161cf1a09c00147dd3dd3 (diff) | |
download | linux-82552bd04c9d2c40633d2e477cbab84dd5293af6.tar.xz |
selftests: net: fix timestamp not arriving in cmsg_time.sh
[ Upstream commit 2d3b8dfd82d76b1295167c6453d683ab99e50794 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_pp.c')
0 files changed, 0 insertions, 0 deletions