]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: ethtool: let drivers declare max size of RSS indir table and key
authorJakub Kicinski <kuba@kernel.org>
Thu, 11 Jul 2024 22:07:04 +0000 (15:07 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 13 Jul 2024 05:16:22 +0000 (22:16 -0700)
commit28c8757a792bbbc76407777bd0303862daa75057
tree1c0b02fa912946f58fc71b6619aa0f807531ffcc
parentd69ba6bbaf1f606ac354e925571a54d025e32aae
net: ethtool: let drivers declare max size of RSS indir table and key

Some drivers (bnxt but I think also mlx5 from ML discussions) change
the size of the indirection table depending on the number of Rx rings.
Decouple the max table size from the size of the currently used table,
so that we can reserve space in the context for table growth.

Static members in ethtool_ops are good enough for now, we can add
callbacks to read the max size more dynamically if someone needs
that.

Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://patch.msgid.link/20240711220713.283778-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/ethtool.h
net/ethtool/ioctl.c