]> www.infradead.org Git - users/dwmw2/linux.git/commit
gve: Add RSS cache for non RSS device option scenario
authorZiwei Xiao <ziweixiao@google.com>
Wed, 19 Feb 2025 20:04:51 +0000 (12:04 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Feb 2025 23:55:39 +0000 (15:55 -0800)
commit4b9c7d8fa113c0b363d0ceee29d1b15cceb771ee
tree728561e5ad6cf9a29daa16bbd22503a53582671e
parentc451715d78e31a27afaad35ee0e9a915935cd6ea
gve: Add RSS cache for non RSS device option scenario

Not all the devices have the capability for the driver to query for the
registered RSS configuration. The driver can discover this by checking
the relevant device option during setup. If it cannot, the driver needs
to store the RSS config cache and directly return such cache when
queried by the ethtool. RSS config is inited when driver probes. Also the
default RSS config will be adjusted when there is RX queue count change.

At this point, only keys of GVE_RSS_KEY_SIZE and indirection tables of
GVE_RSS_INDIR_SIZE are supported.

Signed-off-by: Ziwei Xiao <ziweixiao@google.com>
Reviewed-by: Harshitha Ramamurthy <hramamurthy@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Praveen Kaligineedi <pkaligineedi@google.com>
Signed-off-by: Jeroen de Borst <jeroendb@google.com>
Link: https://patch.msgid.link/20250219200451.3348166-1-jeroendb@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve.h
drivers/net/ethernet/google/gve/gve_adminq.c
drivers/net/ethernet/google/gve/gve_ethtool.c
drivers/net/ethernet/google/gve/gve_main.c