]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: drv-net: wait for iperf client to stop sending
authorNimrod Oren <noren@nvidia.com>
Tue, 22 Jul 2025 12:26:55 +0000 (15:26 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 24 Jul 2025 01:52:12 +0000 (18:52 -0700)
commit86941382508850d58c11bdafe0fec646dfd31b09
tree137d9a9dc60936fa8aa637666237f8ff7ec256c6
parent14822f782700a094baa9b5966cc047a9b1b31701
selftests: drv-net: wait for iperf client to stop sending

A few packets may still be sent out during the termination of iperf
processes. These late packets cause failures in rss_ctx.py when they
arrive on queues expected to be empty.

Example failure observed:

  Check failed 2 != 0 traffic on inactive queues (context 1):
    [0, 0, 1, 1, 386385, 397196, 0, 0, 0, 0, ...]

  Check failed 4 != 0 traffic on inactive queues (context 2):
    [0, 0, 0, 0, 2, 2, 247152, 253013, 0, 0, ...]

  Check failed 2 != 0 traffic on inactive queues (context 3):
    [0, 0, 0, 0, 0, 0, 1, 1, 282434, 283070, ...]

To avoid such failures, wait until all client sockets for the requested
port are either closed or in the TIME_WAIT state.

Fixes: 847aa551fa78 ("selftests: drv-net: rss_ctx: factor out send traffic and check")
Signed-off-by: Nimrod Oren <noren@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250722122655.3194442-1-noren@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/lib/py/load.py