๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21692

Re: [PATCH net-next v9 04/10] bnge: add RXFH ethtool support

#21692
From: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 10:20
74 lines
10824 bytes
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
Technical Details
Message-ID: <179551562804.3135.9305263922001429893@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370220-linux-kernel-netdev=dewy.ru
References: <20261123100746.1975030-5-vikas.gupta@broadcom.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370220-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v9 04/10] bnge: add RXFH ethtool support
Date: Tue, 24 Nov 2026 10:20:28 +0000
Organization: Usenet Network
Message-ID: <179551562804.3135.9305263922001429893@kernel.org>
References: <20261123100746.1975030-5-vikas.gupta@broadcom.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="4110494"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:T0fE3XWNQLFkYAWINBT9Cs2d92M= sha256:ythvkUlZZtFQ16eqdXne//J/msZ0dQxhLB8R8EHm2Io=
	sha1:JeDRYQ99yey9MMJtfHiaWTuogb8= sha256:XOAF8nF/p/akue3J5Lt1f61kORhseWNLZqfY2bqLZDE=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 089D4125DF5; Tue, 24 Nov 2026 13:20:57 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ZBsMpvEIFplI;
	Tue, 24 Nov 2026 13:20:53 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-370220-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 42380125DEF; Tue, 24 Nov 2026 13:20:43 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 9E3D029ADE; Tue, 24 Nov 2026 10:20:36 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795515635;
	b=JnAfxy7LzFp0shxxXzPX9BwPZAaSanc5o78qqSH5GeWgtAKNKOGrRa8QJDp8ILyJ/qHC
	 +c6X/SCyRk5UpeLkcA8PI3izGOIImofYP7u8iZEb5PN6iZLWtGhQCFJhviSvhsPB1xL0s
	 fstjBDVWNJ5h/+zGvJl0OhqWbdazYgIRcStx+u2T8BPwrV9YviUrZGWBdPWGoVe2A1V/F
	 rW7Pd211V3eO2xHCj5mhw5IccdVJ2pHZgTgM7wgpnwwytve/wD8bZQ/3Q7nbnT/GGueK8
	 EPnJF6sMRaESCOP+noxS0+OlqJ8uzRH2jBsWtzDT5SNHoTFvDOExjXfLrLjDVoe+P8w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795515635;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=71lhKW3WAtNPUMZQpIRwdFzKebxSgDk2Bsk4diiWFOc=;
	b=3YidfO5XY8HnzdBn5CKb1/7aiVAJzQ90uUPfXx0wHoRbLL86BkSRLEuEcb6mc218wwuQ
	 KacOrYynjgJoyyTBUiDy/XKJLGbp4Pq0WdDXvQ44KL48QYkv9Eo2qBGJtLdqyWIzId1g2
	 WoMwd4MDl1NULOGFLMF4u5ScVm36BxH8IVu8FFguE2u0BwIxbCBIvJmOJupqLF/mvFgOQ
	 Sx+0GeoB2KnB+xFcavRfkyax2ZGTydbo+YIXfZk4j3GUrGuE+5M2107eR4LGYY4t2H2W+
	 gR0SipC1PIyMjKsjUzkaCb6zIkunbkdqmWHDQ9VFKQmdkgt0JwrkYw5SgJFEv60zdzw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=a8VESq8d;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id A5239606A332;
	Tue, 24 Nov 2026 10:20:35 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=a8VESq8d
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795515629;
	b=QM97ABTl5swdUmB2sERRvBNAJiebLFFcek6CQEy7h24ode7FmBVp3WwiV01Jr53hh3Mb
	 BdSduUhM1+FcZ8eu+0Pu2+g6m6F2Pq/ALhT2D8vtf85cO3OBXLfatta1EqS+NvDgYVboU
	 K3AKhcMpqHZpHQK+zUM8d7Bme8tulq33victTBQt6CE2C9vcCM/dnUpNl8GcAGbi9ccAd
	 eS4oxf1QmgSieglFtnr+Qf+7RQIimWq9pXwKs4WEqgG9uwvGZfkr7z7CvTIsSadCwglBa
	 dJqSahUKQlvLP0/8gRyjU8OkGrc1QA5vCMAouiCAd9M85a89nOLSIIPJ0mia8YeLlwQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795515629;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=71lhKW3WAtNPUMZQpIRwdFzKebxSgDk2Bsk4diiWFOc=;
	b=y83awqXHwpL0YQg3kJIotir9HNk4HPYg/8+5vviIFsg1sV769vmdD+g6MhT1cj9fw23K
	 GJRsLe4LmciYGf4DX2ftil287LoGwZN2g40zzUZOzMiC4nltaQecYqvNVv1BoI+R+NbP0
	 f2MMRCmZUbw3i06rnTp/mZ5Ld6zy6w363aUiHaET6+PEsvV0IyuWN5UTpSJv87r3t2vLC
	 BefpLhRBTYRCuv5ixBIjDWX9JSXNnEEbnWsOZkfVH82Z/Qe63jNxtNyxQFs5b2z1zj0G0
	 /6fGVSn2PqhkxFZvd2YhUkRuD/r6SPjzXBxDW9r2cG8MKVCFZHjart0nExWlb0fIx+g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=a8VESq8d;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id C60C4606A33D;
	Tue, 24 Nov 2026 10:20:29 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72CE21F000C0;
	Tue, 24 Nov 2026 10:20:28 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795515629;
	bh=71lhKW3WAtNPUMZQpIRwdFzKebxSgDk2Bsk4diiWFOc=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=a8VESq8dwu+7Wc9G+agp0PYiJJedS6oUbkD/QEZDpyuFkAXRhFwgh3NwEYdaSAzbB
	 kJcZsnYDleJbz600ZB3l4xJh09zNwQBCCxIzukTNsJtYTBWqiIOWMUqoDmLsZC6vbW
	 6DcZaKrJgKolyKZZU5e7nkJLU/+V6W3XbxqPMj9QKD+ErWTPrlrvhjrX5NfgC9sLRv
	 N/aav3bu4M5C4DAPtwSXAFCxT6S30q8W4mzDhmH5wr0SnkVpCnGj2BmUiXNX/OT8ux
	 F41BSu2gS1hCN44UuEIafUhFrM6OwHiWFMy8bDgZy2pC0U3BwG3HdT2hAovCDZBVJB
	 C+E+mAFRHyorg==
X-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
X-In-Reply-To: <20261123100746.1975030-5-vikas.gupta@broadcom.com>
X-sashiko-severity: Low
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list