]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: rss_drv: Add RSS indirection table resize tests
authorBjörn Töpel <bjorn@kernel.org>
Fri, 20 Mar 2026 08:58:24 +0000 (09:58 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Mar 2026 00:59:54 +0000 (17:59 -0700)
commit10329ce49285e8548da25bdb1cdba3badccfb00c
tree3ac5b2efb70cdde6c5ed9a197c40498939ed10e9
parent57cdfe0dc70ba7cf234707e9e2c63613b9ce1e75
selftests: rss_drv: Add RSS indirection table resize tests

Add resize tests to rss_drv.py. Devices without dynamic table sizing
are skipped via _require_dynamic_indir_size().

resize_periodic: set a periodic 4-entry table, shrink channels to
fold, grow back to unfold. Check the exact pattern is preserved. Has
main and non-default context variants.

resize_below_user_size_reject: send a periodic table with user_size
between the big and small device table sizes. Verify that shrinking
below user_size is rejected even though the table is periodic. Has
main and non-default context variants.

resize_nonperiodic_reject: set a non-periodic table (equal N), verify
that channel reduction is rejected.

resize_nonperiodic_no_corruption: verify a failed resize leaves both
the indirection table contents and the channel count unchanged.

Signed-off-by: Björn Töpel <bjorn@kernel.org>
Link: https://patch.msgid.link/20260320085826.1957255-5-bjorn@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/rss_drv.py