summaryrefslogtreecommitdiff
path: root/tools/memory-model/scripts
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn@kernel.org>2026-03-20 11:58:22 +0300
committerJakub Kicinski <kuba@kernel.org>2026-03-24 03:59:54 +0300
commit02bcb20083b2780772cfb66cd426f31940296783 (patch)
treef3314669962e081fd927a4bd0ece69dc793e9fef /tools/memory-model/scripts
parent0475f9e779b456f934adbc44eeb98e3080a1893f (diff)
downloadlinux-02bcb20083b2780772cfb66cd426f31940296783.tar.xz
ethtool: Add RSS indirection table resize helpers
The core locks ctx->indir_size when an RSS context is created. Some NICs (e.g. bnxt) change their indirection table size based on the channel count, because the hardware table is a shared resource. This forces drivers to reject channel changes when RSS contexts exist. Add driver helpers to resize indirection tables: ethtool_rxfh_indir_can_resize() checks whether the default context indirection table can be resized. ethtool_rxfh_indir_resize() resizes the default context table in place. Folding (shrink) requires the table to be periodic at the new size; non-periodic tables are rejected. Unfolding (grow) replicates the existing pattern. Sizes must be multiples of each other. ethtool_rxfh_ctxs_can_resize() validates all non-default RSS contexts can be resized. ethtool_rxfh_ctxs_resize() applies the resize. Signed-off-by: Björn Töpel <bjorn@kernel.org> Link: https://patch.msgid.link/20260320085826.1957255-3-bjorn@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/memory-model/scripts')
0 files changed, 0 insertions, 0 deletions