From: netdev-bot+sashiko@kernel.org
To: vikas.gupta@broadcom.com
Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
bhargava.marreddy@broadcom.com, rahul-rg.gupta@broadcom.com,
vsrama-krishna.nemani@broadcom.com,
rajashekar.hudumula@broadcom.com, dharmender.garg@broadcom.com,
ajit.khaparde@broadcom.com
Subject: Re: [PATCH net-next v9 04/10] bnge: add RXFH ethtool support
Date: Tue, 24 Nov 2026 10:20:28 +0000 [thread overview]
Message-ID: <179551562804.3135.9305263922001429893@kernel.org> (raw)
In-Reply-To: <20261123100746.1975030-5-vikas.gupta@broadcom.com>
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] This commit sets four RSS-context fields in bnge_ethtool_ops:
`.rxfh_per_ctx_key = 1`, `.rxfh_max_num_contexts =…
--
bnge: add RXFH ethtool support
This adds the ethtool get/set_rxfh and get/set_rxfh_fields callbacks for
the RSS hash key, the indirection table and the hash fields. Changes are
only accepted while the device is down. The default key now comes from
netdev_rss_key_fill(), and the indirection table is reset or kept when
the RX ring count changes.
> diff --git a/drivers/net/ethernet/broadcom/bnge/bnge_ethtool.c b/drivers/net/ethernet/broadcom/bnge/bnge_ethtool.c
> index 2467e44de291a..878fe4888160f 100644
> --- a/drivers/net/ethernet/broadcom/bnge/bnge_ethtool.c
> +++ b/drivers/net/ethernet/broadcom/bnge/bnge_ethtool.c
[ ... ]
> @@ -757,6 +1090,18 @@ static const struct ethtool_ops bnge_ethtool_ops = {
> .get_eth_ctrl_stats = bnge_get_eth_ctrl_stats,
> .get_pause_stats = bnge_get_pause_stats,
> .get_rmon_stats = bnge_get_rmon_stats,
> + /* RXFH */
> + .rxfh_per_ctx_key = 1,
> + .rxfh_max_num_contexts = BNGE_MAX_ETH_RSS_CTX + 1,
> + .rxfh_indir_space = BNGE_MAX_RSS_TABLE_ENTRIES,
> + .rxfh_priv_size = sizeof(struct bnge_rss_ctx),
[Severity: Low]
This isn't a bug, but these four fields describe RSS context support.
This patch doesn't add create_rxfh_context, modify_rxfh_context or
remove_rxfh_context to bnge_ethtool_ops, so here they have no effect.
The ethtool core checks for the create callback before it reads any of
them, for example in ethnl_rss_create_validate():
if (!ops->create_rxfh_context)
return -EOPNOTSUPP;
As a result, "ethtool -X ethX context new" still returns -EOPNOTSUPP at
this commit, the same as before the patch. The new BNGE_MAX_ETH_RSS_CTX
define in bnge_vnic.h is only used by rxfh_max_num_contexts here.
The next patch in the series, "bnge: add ethtool support to manage RSS
contexts", adds all three callbacks. By the end of the series these
fields line up with the context code.
The commit message doesn't mention these fields. Could they and
BNGE_MAX_ETH_RSS_CTX move to the RSS context patch, where they are first
used? Alternatively, the commit message could note why they are added
here.
> + .get_rx_ring_count = bnge_get_rx_ring_count,
> + .get_rxfh_indir_size = bnge_get_rxfh_indir_size_eth,
> + .get_rxfh_key_size = bnge_get_rxfh_key_size,
> + .get_rxfh = bnge_get_rxfh,
> + .set_rxfh = bnge_set_rxfh,
> + .get_rxfh_fields = bnge_get_rxfh_fields,
> + .set_rxfh_fields = bnge_set_rxfh_fields,
> };
[ ... ]
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261123100746.1975030-1-vikas.gupta%40broadcom.com
next prev parent reply other threads:[~2026-11-24 10:20 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 10:07 [PATCH net-next v9 00/10] add features to bnge Vikas Gupta
2026-11-23 10:07 ` [PATCH net-next v9 01/10] bnge: restructure VNIC and filter code Vikas Gupta
2026-11-23 10:07 ` [PATCH net-next v9 02/10] bnge: add NTUPLE/ARFS VNIC Vikas Gupta
2026-11-24 10:20 ` netdev-bot+sashiko
2026-11-23 10:07 ` [PATCH net-next v9 03/10] bnge: add helper functions for multi RSS contexts Vikas Gupta
2026-11-23 10:07 ` [PATCH net-next v9 04/10] bnge: add RXFH ethtool support Vikas Gupta
2026-11-24 10:20 ` netdev-bot+sashiko [this message]
2026-11-23 10:07 ` [PATCH net-next v9 05/10] bnge: add ethtool support to manage RSS contexts Vikas Gupta
2026-11-24 10:20 ` netdev-bot+sashiko
2026-11-23 10:07 ` [PATCH net-next v9 06/10] bnge: remove refcount from L2 filter Vikas Gupta
2026-11-24 10:20 ` netdev-bot+sashiko
2026-11-23 10:07 ` [PATCH net-next v9 07/10] bnge: add NTUPLE filter infrastructure Vikas Gupta
2026-11-24 10:20 ` netdev-bot+sashiko
2026-11-23 10:07 ` [PATCH net-next v9 08/10] bnge: add NTUPLE filter support in ethtool Vikas Gupta
2026-11-24 10:20 ` netdev-bot+sashiko
2026-11-23 10:07 ` [PATCH net-next v9 09/10] bnge: add aRFS flow steering ndo support Vikas Gupta
2026-11-24 10:20 ` netdev-bot+sashiko
2026-11-23 10:07 ` [PATCH net-next v9 10/10] bnge: add cpu_rmap support for IRQ affinity Vikas Gupta
2026-11-24 10:20 ` netdev-bot+sashiko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179551562804.3135.9305263922001429893@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=ajit.khaparde@broadcom.com \
--cc=andrew+netdev@lunn.ch \
--cc=bhargava.marreddy@broadcom.com \
--cc=davem@davemloft.net \
--cc=dharmender.garg@broadcom.com \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rahul-rg.gupta@broadcom.com \
--cc=rajashekar.hudumula@broadcom.com \
--cc=vikas.gupta@broadcom.com \
--cc=vsrama-krishna.nemani@broadcom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®