diff options
| author | Gal Pressman <[email protected]> | 2025-03-18 11:24:26 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-03-24 19:22:37 +0000 |
| commit | c61209eeb0b382f6a605160f06285fec7e3415e2 (patch) | |
| tree | 256d7f1ecf39c6b174c346a833471e7fd7462b05 /tools/testing/selftests/drivers/net/hw/rss_ctx.py | |
| parent | docs/kcm: Fix typo "BFP" (diff) | |
| download | kernel-c61209eeb0b382f6a605160f06285fec7e3415e2.tar.gz kernel-c61209eeb0b382f6a605160f06285fec7e3415e2.zip | |
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 <[email protected]>
Signed-off-by: Gal Pressman <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/drivers/net/hw/rss_ctx.py')
| -rwxr-xr-x | tools/testing/selftests/drivers/net/hw/rss_ctx.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/drivers/net/hw/rss_ctx.py b/tools/testing/selftests/drivers/net/hw/rss_ctx.py index d6e69d7d5e43..ca60ae325c22 100755 --- a/tools/testing/selftests/drivers/net/hw/rss_ctx.py +++ b/tools/testing/selftests/drivers/net/hw/rss_ctx.py @@ -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 |
