mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
selftests: drv-net: rss_ctx: make the test pass with few queues
rss_ctx.test_rss_key_indir implicitly expects at least 5 queues, as it checks that the traffic on first 2 queues is lower than the remaining queues when we use all queues. Special case fewer queues. Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250901173139.881070-2-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
4022f92a2e
commit
e2cf2d5baa
|
|
@ -178,8 +178,13 @@ def test_rss_key_indir(cfg):
|
|||
cnts = _get_rx_cnts(cfg)
|
||||
GenerateTraffic(cfg).wait_pkts_and_stop(20000)
|
||||
cnts = _get_rx_cnts(cfg, prev=cnts)
|
||||
# First two queues get less traffic than all the rest
|
||||
ksft_lt(sum(cnts[:2]), sum(cnts[2:]), "traffic distributed: " + str(cnts))
|
||||
if qcnt > 4:
|
||||
# First two queues get less traffic than all the rest
|
||||
ksft_lt(sum(cnts[:2]), sum(cnts[2:]),
|
||||
"traffic distributed: " + str(cnts))
|
||||
else:
|
||||
# When queue count is low make sure third queue got significant pkts
|
||||
ksft_ge(cnts[2], 3500, "traffic distributed: " + str(cnts))
|
||||
|
||||
|
||||
def test_rss_queue_reconfigure(cfg, main_ctx=True):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user