Skip to content

Commit c61209e

Browse files
gal-pressmankuba-moo
authored andcommitted
selftests: drv-net: rss_ctx: Don't assume indirection table is present
The test_rss_context_dump() test assumes the indirection table is always supported, which is not true for all drivers, e.g., virtio_net when VIRTIO_NET_F_RSS is disabled. Skip the check if 'indir' is not present. Reviewed-by: Nimrod Oren <noren@nvidia.com> Signed-off-by: Gal Pressman <gal@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250318112426.386651-1-gal@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 4f34c2b commit c61209e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/drivers/net/hw/rss_ctx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def test_rss_context_dump(cfg):
392392

393393
# Sanity-check the results
394394
for data in ctxs:
395-
ksft_ne(set(data['indir']), {0}, "indir table is all zero")
395+
ksft_ne(set(data.get('indir', [1])), {0}, "indir table is all zero")
396396
ksft_ne(set(data.get('hkey', [1])), {0}, "key is all zero")
397397

398398
# More specific checks

0 commit comments

Comments
 (0)