🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #12805

Re: [PATCH] net: octeontx2-pf: drop the TC mark reference when adding a flow fails

#12805
From: Simon Horman
Date: Sun, 08 Nov 2026 17:02
34 lines
9255 bytes
On Sat, Nov 07, 2026 at 11:31:48AM +0000, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential
> issue(s) to consider.
> 
> Critical: 0 · High: 1 (1) · Medium: 1 (1) · Low: 0
> 
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
> 
> - [High] The new helper otx2_tc_put_mark_flow() (otx2_tc.c:1240-1245)
>   uses `req->match_id != 0` to decide whether a mark_flows reference was…
> - [Medium] net: octeontx2-pf: otx2_tc_put_mark_flow() leaves TC mark flag
>   enabled

It seems to me that although two issues above are pre-existing, they
should be considered as part of the problem that this patch seeks to
address. So I think they should be addressed by a revised version of
this patch-set.

> 
> Pre-existing issues:
> - [High] This problem wasn't introduced by this patch, but it makes the
>   counter the patch balances meaningless.
> - [Medium] This problem wasn't introduced by this patch, but the error
>   paths of otx2_tc_add_flow() that the patch edits fail to undo other…

...

-- 
pw-bot: changes-requested
Technical Details
Message-ID: <20261108170216.GG18859@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-358809-linux-kernel-netdev=dewy.ru
References: <20261103100536.1310108-1-vulab@iscas.ac.cn> <179405110835.994134.149418482897287841@kernel.org>

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-358809-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] net: octeontx2-pf: drop the TC mark reference when
 adding a flow fails
Date: Sun, 8 Nov 2026 17:02:16 +0000
Organization: Usenet Network
Message-ID: <20261108170216.GG18859@horms.kernel.org>
References: <20261103100536.1310108-1-vulab@iscas.ac.cn>
 <179405110835.994134.149418482897287841@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="163376"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:H38uLusJQJTXBzyvL0wl96A4aBE= sha256:lk6qhj96X+XLUl5a+8HUAKET+ZLg4LgYLt42RW2IH4Q=
	sha1:yQMlfoR9/cFSeIhvL9CU/OGD0wg= sha256:mdqh0yA9FI6fOlwGmrEDfPNKO3fBPZo35uLvXyepLn4=
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 E29B71135C8; Sun,  8 Nov 2026 20:03:14 +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 Sr2s0n37_G2l;
	Sun,  8 Nov 2026 20:03:12 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358809-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id B93D71135AD; Sun,  8 Nov 2026 20:03:03 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 3570A678AF; Sun,  8 Nov 2026 17:02:38 +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=1794157358;
	b=bpKQsZISQHyO1SJ9azvL5QYI8re3DuHgjTcHg2VICZ8gLipYPD8Fbj/C7LazGUwI8YVM
	 7rSZyS5bOQ9Wt+PkhXGC1cxhVAYVum5QmrZpuCUnYdo90MeAiFx65C2gp7aZltZmjaAUD
	 dS9boaSsM9RFU4zkIW7t6O2xfFJKiy4a2mxmNhz//UgEAy9YTFD1OOWeYXTDhoFSvdmAo
	 YmTqFJ/qKU80obrACkRaaEW4+3zXnqpUqi5EB5gsBeTQdVB4wwuXo1BuYoMAAKei4dtTU
	 tl//LGfAJ9Hg2enhDQzFF+HfH3N5SWM9E4pB4DpKQMcF6JVzyta7cD4MAxMy3qzZNvw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794157358;
	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:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=qFlpjEueTpCiMBdjh8PXXrYdnau7ws5RWsTwS4pQKrE=;
	b=0rg+059FqM5uAw0Cmkc8ZZJLmlCyAzD6gWMWFYh1ijypoup8Cl5wKzIojswQ36G1nUkM
	 AC8z9IBwx3AaaX3ORcivFYxljiUgxGpgSnd9OWE33Pokj/4JBlkzgdoyubUbmkP/JirTG
	 QdOh/MomVB+vdOlYUgIZA78q3/jVDLfn8oKbJSqWp/yMtuNdHhZ8SO105V6jxPidXZZ9E
	 9tbkbPaUIjDBzTHUFkHQoRZjphiAXQRPn2JOfmvVA35j0WSQ8sEY1OW4OJZzTaJSGup9R
	 xNCM3ZiGA5QSTpOx/LfggD7Lz2v7ktqUdeQ7ca7zSxF7iz4zZcf8ARC1aJU9SKJzY3w==
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=mhunhaGC;
	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 011C7606A323;
	Sun,  8 Nov 2026 17:02:38 +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=mhunhaGC
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=1794157342;
	b=5cxcd3g7+R2lAWiq5y+U8WST3lPhwcSMTeIV0ntIDQ8oBBkoxqUakLUS4bwSpakCdAuT
	 p6Kft3Dr2R3tLQS3uaPMosfapq71s/Z3SrIErPtY/KpkdXPgqHsFWH3OfbgPlH5S/1Hf/
	 fIMNZxDUlVYD02A1QLT8trpsxRrS/gNHTGTVS87yjaaKGk+Aku//QNqGWguOS4G6UsK4r
	 N/Nzc9LMOKMTkYNKNOqAmTzsj7jTXlxGNzCgCEIiByqm9yX8FYBRJONhXU8mz9Mv9E6w5
	 U8sITQTauCTP1EwLpVu6fUY4cs5GFNYbEv1reaL0XIw9VS52maiY8BEep9ZqOW6p71g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794157342;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=qFlpjEueTpCiMBdjh8PXXrYdnau7ws5RWsTwS4pQKrE=;
	b=WlzoInJ+ZcT9ignOZIjPtydReIPmFeiTgs8XfQDMiXodnz/qdKGpHG2Q7bdqOYrT2DtF
	 JN6yBewnN2moan7Pu0snwupIILfKFvurx3Q9N32yODvJTWUCqE7+EuI9cH9wEDEisUSuC
	 hi3ts6TuYdsntLEzxvEFFV4ACtAOsL5JxX+Ez3j5kMZMe+knJ0zEKmGcw5VLsQRKFHXjD
	 awla0wGSWEnpckEbezT/eg5x1Yg6Gu3I2N3cf5lKeFzlhUb3vTV9fiJPiPVCXkxhy7ddo
	 rTcpG7XgVUlfYCreCAcO9uXyXQgJawk/x6kdHvegLdPjV9VnTKtS75QlgLQ45hFN+jg==
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=mhunhaGC;
	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 D9720606A31C;
	Sun,  8 Nov 2026 17:02:21 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C36B81F0089F;
	Sun,  8 Nov 2026 17:02:18 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794157341;
	bh=qFlpjEueTpCiMBdjh8PXXrYdnau7ws5RWsTwS4pQKrE=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=mhunhaGC7EzIXBAewEYHTGHdu3as0GnW4KEeFBL4EIDf54IKSDKIOCulf8r1QBH5n
	 54qLU5xQqMyvc/4ngQxdDo1OOwzuiUtBX5mxCZ3itBbgDEso6g9R2HGXDstPQsN+ci
	 388YhEXBAWk9d/lJDN6oVpqK1xbsvX+NIFav7D9qSw6DBZZ8/hfaa2y8VRr02JLp4Y
	 lN3cTQ9xzZIufuAFpFFAU70GFNMOSf4RDm9QFTP+RoSfd/OS4NfqTcsKq6/mKJKruo
	 5Ff8R/1rvRDOXqISrMmYQunYoWd7HhvW8XuIoEyI3wHT/9J/xMyxnvlZ6wRObA1mb3
	 VNeRfHDh5IhUw==
X-Cc: vulab@iscas.ac.cn, sgoutham@marvell.com, gakula@marvell.com,
	rkannoth@marvell.com, sbhatta@marvell.com, bbhushan2@marvell.com,
	andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org
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: <179405110835.994134.149418482897287841@kernel.org>