selftests: drv-net: rss_ctx: Don't assume indirection table is present
Subsystems (3)
PATCH 1/1 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.
--- tools/testing/selftests/drivers/net/hw/rss_ctx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/drivers/net/hw/rss_ctx.py +1 -1
@@ -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
Signature · 1 line
2.40.1
Quoted 8 lines · Gal Pressman
The
test_rss_context_dump()test assumes the indirection table is always supported, which is not true for all drivers, e.g.,virtio_netwhenVIRTIO_NET_F_RSSis disabled.Skip the check if 'indir' is not present.
Reviewed-by Nimrod Oren <[email protected]>Signed-off-by Gal Pressman <[email protected]>
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 10 lines · On Tue, 18 Mar 2025 13:24:26 +0200 you wrote:
The
test_rss_context_dump()test assumes the indirection table is always supported, which is not true for all drivers, e.g.,virtio_netwhenVIRTIO_NET_F_RSSis disabled.Skip the check if 'indir' is not present.
Reviewed-by Nimrod Oren <[email protected]>Signed-off-by Gal Pressman <[email protected]>[...]
Here is the summary with links:
- [net-next] selftests: drv-net: rss_ctx: Don't assume indirection table is present
https://git.kernel.org/netdev/net-next/c/c61209eeb0b3
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html