]> www.infradead.org Git - users/willy/xarray.git/commit
eth: bnxt: move from .set_rxfh to .create_rxfh_context and friends
authorJakub Kicinski <kuba@kernel.org>
Thu, 11 Jul 2024 22:07:06 +0000 (15:07 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 13 Jul 2024 05:16:22 +0000 (22:16 -0700)
commit5c466b4d4e75c09a5a3e8d7a79cc20a22bc83809
treeb119973e59e87d265ee4383723bb9af5fb6a86e2
parent667ac333dbb7e265b3f5bc4bc94e236f64682c86
eth: bnxt: move from .set_rxfh to .create_rxfh_context and friends

Use the new ethtool ops for RSS context management. The conversion
is pretty straightforward cut / paste of the right chunks of the
combined handler. Main change is that we let the core pick the IDs
(bitmap will be removed separately for ease of review), so we need
to tell the core when we lose a context.
Since the new API passes rxfh as const, change bnxt_modify_rss()
to also take const.

Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://patch.msgid.link/20240711220713.283778-5-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c