🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #12172

Re: [PATCH net v2] octeontx2-af: skip NPC_AF_MATCH_STATX access on cn20k

#12172
From: Simon Horman
Date: Fri, 06 Nov 2026 12:09
26 lines
9024 bytes
On Tue, Nov 03, 2026 at 09:18:31AM +0000, Vadluri Mukunda wrote:
> From: Subbaraya Sundeep <sbhatta@marvell.com>
> 
> NPC_AF_MATCH_STATX is not present on cn20k silicon, and cn20k does
> not set up an RX miss action counter. Two paths still access it:
> the npc_delete_flow mailbox, which reads the counter of the deleted
> rule, and the rx_miss_act_stats debugfs file, which would read
> counter 0. Avoid the access on cn20k. Counter support for cn20k is
> left for later.
> 
> Found by code inspection. The issue was not triggered on hardware.
> Compile tested only; not tested on real hardware.
> 
> Fixes: 4e527f1e5c15 ("octeontx2-af: npc: cn20k: Add new mailboxes for CN20K silicon")
> Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
> Signed-off-by: Vadluri Mukunda <vmukunda@marvell.com>
> ---
> v2:
>   - Fixes tag now points to the upstream commit
>   - Also skip creating the rx_miss_act_stats debugfs file on cn20k
>   - Use full name in Signed-off-by
>   - Add how the issue was found and what testing was done
> v1: https://lore.kernel.org/netdev/20261026035140.666684-1-vmukunda@marvell.com/

Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID: <20261106120918.GH865646@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357975-linux-kernel-netdev=dewy.ru
References: <20261103091831.914393-1-vmukunda@marvell.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357975-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] octeontx2-af: skip NPC_AF_MATCH_STATX access on
 cn20k
Date: Fri, 6 Nov 2026 12:09:18 +0000
Organization: Usenet Network
Message-ID: <20261106120918.GH865646@horms.kernel.org>
References: <20261103091831.914393-1-vmukunda@marvell.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3874435"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8II1H99YNiOwUBBX52UXI6NwFE8= sha256:MpnVMGiWSXTcWOJ2qkqOsfhYp4JNKlGhnOWzYq7VIrw=
	sha1:5PbCbwWjAj03wX0/d9tMg1cpCh8= sha256:0twVVZp5mkRy39NnzBZlfRVtMYvPwLwDWos3WACcMz8=
Content-Disposition: inline
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 3682D113249; Fri,  6 Nov 2026 15:24:50 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 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] 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 6ezxvD7EvJ7C;
	Fri,  6 Nov 2026 15:24:46 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-357975-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id D6325113245; Fri,  6 Nov 2026 15:24:37 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id E3AF72BB38; Fri,  6 Nov 2026 12:10:14 +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=1793966970;
	b=eQ5PIKE8q1PSccaQxIFJBSS5JRYk9cpBN5YS8c63qKgkbTn/Gsn0NzDabXCCCNOPG6y/
	 GpIzUO2HMOY/FNtdfNknCbakTR6k4DbUGW1tXZ/ks59+MtDv9bxNq66dNy3vGfwufQ6RM
	 +8BNg24XhiQ50GskPjHDUR4PMK6DVGHdSavXr7zUqbCI1UoLpz18dibDasjbk1SkpHCHs
	 LuxJtLykkH2Hup31aeY0wHi61oiJ1cW4ZCdWKY7qV8Gdna+cfocOLGyTEh+P+NbUQuUS1
	 fGyAolBbDG+QBiVXnHcI8TN4jRsXGTIPUmc24jmH6PTl/CB9eY3KhkA6ynX/yURjjyA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793966970;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=rIJTGu4lQFEUcai9lQo31jwOxKOMF2xzMy8/uijRKkI=;
	b=IgCbKTzMW41SUyhCRLafpTagI+TRFcv6PdI8J957lMjgJoyjhJZoAnesTZq2/1Dsnrz2
	 K1tBLtPQJmB91E9EUdSatt3+tpTU32yiGzf3YtuWKNNDEQRwq/cEpwr/0pPUKYTw9rxXI
	 QqZ5YnSMzk9X+Zl8XKIXJBpgapsgkkntPR3vBR2Kv0pHLlFYFHX0g/WjmvCowOKgmOQ8F
	 Sh6V4Y/uKlN+Vp0Lboym5zX0/zrCTRE4Q2njzPL3AfZjLye34Dw7G2IZar7VsOfd9B5cg
	 uNzdtI6usEdT8mi1m3sdBJfocm9E25Yw/JHiNn9MAV3UtH7HpPkw6p9z1vY7kcbWhRw==
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=ca7Tc1td;
	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 298E4606EE9F;
	Fri,  6 Nov 2026 12:09:30 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ca7Tc1td
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=1793966964;
	b=Ve0RAdgmcF1SJDXYytrV7RmF2JCCzFzQkCjtRXSk6VeWEIyQjSC4Z5AmfkG3pC/bq3xd
	 OAdwBxx+UdBkOQ9X3V44vV5JbU0xXh4RWMWrCQvWA/1IGzcj9Sjwqtn2Bn7mqe5ugFN+Y
	 q39A4chbTa36r1MZ93dJUvQkhpWBxfTs5Rv3ufvKlcqI3y3PCPnIB4P+5uaHX/y/dNoQ4
	 2wVZO8BSU9u8Z8iH/vMzMmDJbZDTShl5yZIQmHXywMIgcIo8ovKtem8HWA2ClCewRXoUK
	 bKM+D1h7p5BEYTgx67PzKeaCj2v6IqMsk9Q4X50rWWTlI6aQemn5ks/tZ3KI5j23cBA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793966964;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=rIJTGu4lQFEUcai9lQo31jwOxKOMF2xzMy8/uijRKkI=;
	b=iYA5B8fNbKkQ5crkuN9IMcTwcDUf89D6gnujFb1wpQYjHLjKmpjFxonQShx0mlBEYCbI
	 MH0B7hHPw82BxI2n8o1Cu0iHsx/mjtFnUVO18HFNv8OX/CvmYzDJ/1eYXyCRL9G0gCAwQ
	 YOE/xQjxiSCQ+/eBgFD8Kh15h//LM1Sz3QkvC963vnln7Tnjcd0SErXm3sbs4mHK2Blfs
	 fw+7e4lbz2M0HICfg3dPlqP6Nu5cSaN+/e82BIQdlpbEGipAp3lY6yyr0dcc0J/6X9q2z
	 qWlVJURmBw+0NxVqj3+EblfIHI13BZ3c46qW33yn1kKS25YvGUl0/EQqSM7ZmUoYoHg==
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=ca7Tc1td;
	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 0F3C1606D804;
	Fri,  6 Nov 2026 12:09:23 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30DA61F0089F;
	Fri,  6 Nov 2026 12:09:21 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793966963;
	bh=rIJTGu4lQFEUcai9lQo31jwOxKOMF2xzMy8/uijRKkI=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=ca7Tc1td1SVOvkCWqi93cF+4oicJ5D2n86/c9DyBbfQbeVGmJXBESJQp2eN000bX0
	 bvVLAy3jSzzWeWhl2ZqBQ8HRH2529Br6caegJg/3QVBbNyUbBFcHrtL3jo5FFBhGDP
	 VzmJsUc51vWvsuyXyk+W61mXRJo0foz4rQhNnZKr4lCVGJB1fNnCf3+ZpZ4z2PhN9D
	 4twt87jfdZZccjiVJ0FuNKdrj3QxmgBCfIZV9Ma0R9cFdotSp5JRGXchyPUHni5kvG
	 B1//EVUTUyy7RSvycpLtL7L9YuWwY+L2BwIYZg756Qyi5c4T8QtLxeweP0SrQwgn4d
	 sLuBmDb8rGZcA==
X-Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Sunil Goutham <sgoutham@marvell.com>,
	Ratheesh Kannoth <rkannoth@marvell.com>,
	Geetha sowjanya <gakula@marvell.com>,
	Subbaraya Sundeep <sbhatta@marvell.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Suman Ghosh <sumang@marvell.com>
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
X-In-Reply-To: <20261103091831.914393-1-vmukunda@marvell.com>