mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
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>
This commit is contained in:
parent
4f34c2b779
commit
c61209eeb0
|
|
@ -392,7 +392,7 @@ def test_rss_context_dump(cfg):
|
|||
|
||||
# Sanity-check the results
|
||||
for data in ctxs:
|
||||
ksft_ne(set(data['indir']), {0}, "indir table is all zero")
|
||||
ksft_ne(set(data.get('indir', [1])), {0}, "indir table is all zero")
|
||||
ksft_ne(set(data.get('hkey', [1])), {0}, "key is all zero")
|
||||
|
||||
# More specific checks
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user