🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #7357

Re: [PATCH net v4] net: airoha: keep PPE offload when NPU refuses flow stats

#7357
From: Lorenzo Bianconi
Date: Mon, 26 Oct 2026 07:31
65 lines
9840 bytes
--0/0oVR3u5epgDrzE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

> On Sun, Oct 25, 2026 at 03:25:28PM +0000, Chad Monroe wrote:
> > On Wednesday, October 21st, 2026 at 5:49 AM, Andrew Lunn <andrew@lunn.c=
h> wrote:
> >=20
> > > On Wed, Oct 21, 2026 at 03:34:23PM +0530, SAYANTAN NANDY wrote:
> > > > From: Chad Monroe <chad@monroe.io>
> > > >
> > > > With flow stats enabled, PPE offload setup requests flow statistics
> > > > from the NPU. If the running NPU firmware does not support flow
> > > > counters, the request fails and the current setup path aborts PPE
> > > > offload.
> > >=20
> > > Since this never worked, it is not a regression fix.
> > >=20
> > > Why not keep it KISS and report the firmware is too old and suggest
> > > the firmware is updated?
> > >=20
> > > Can the driver do the firmware upgrade?
> > >=20
> > >     Andrew
> > >=20
> >=20
> > Hi Andrew,
> >=20
> > The NPU firmware bin is downloaded at each boot and is present in
> > linux-firmware so no issue with keeping it up to date.
> >=20
> > The main reason for this change is to behave better when flags mismatch.
> > Previously, loading a driver compiled with flow stats support enabled
> > would silently fail to offload if the firmware didn't have support.
>=20
> Sayantan suggested this is a regression. It used to work, but does not
> now?
>=20
> We should avoid regressions.

I do not think this is a regression. In this case, the default behaviour is
just fall-back to sw flowtable acceleration.

@sayantan: can you please confirm?

Regards,
Lorenzo

>=20
>    Andrew

--0/0oVR3u5epgDrzE
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCat8B4QAKCRA6cBh0uS2t
rHTpAP40CYiwB34cqilOMLaCbBIJ6v5uA2+axkwRM5T2R7mtRQEApnIIVLJYmOrt
ZebAaxUcBB1eKe39QGeFpe/hykg8Vgk=
=kHBZ
-----END PGP SIGNATURE-----

--0/0oVR3u5epgDrzE--
Technical Details
Message-ID: <at8B4YDW0-dL22QY@lore-desk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351728-linux-kernel-netdev=dewy.ru
References: <20261021100423.9159-1-sayantann11@gmail.com> <05adf618-f608-4c8e-a862-4c1d0779567c@lunn.ch> <J3XqO9fJOEvpsUH9m_DyrV8wgQzdtZdfhE8KZHv9ejvVty51zjizvG-0nmYn8ZhTGRJnLq0OcEbX7l3DvpqFp8dFEYuWYVpV5ZRKnGXmGKc=@monroe.io> <54711f8d-d71a-43f6-876c-d32f4c562b8d@lunn.ch>

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-351728-linux-kernel-netdev=dewy.ru
From: lorenzo@kernel.org (Lorenzo Bianconi)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v4] net: airoha: keep PPE offload when NPU refuses
 flow stats
Date: Mon, 26 Oct 2026 08:31:46 +0100
Organization: Usenet Network
Message-ID: <at8B4YDW0-dL22QY@lore-desk>
References: <20261021100423.9159-1-sayantann11@gmail.com>
 <05adf618-f608-4c8e-a862-4c1d0779567c@lunn.ch>
 <J3XqO9fJOEvpsUH9m_DyrV8wgQzdtZdfhE8KZHv9ejvVty51zjizvG-0nmYn8ZhTGRJnLq0OcEbX7l3DvpqFp8dFEYuWYVpV5ZRKnGXmGKc=@monroe.io>
 <54711f8d-d71a-43f6-876c-d32f4c562b8d@lunn.ch>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="0/0oVR3u5epgDrzE"
Injection-Info: usenet.network;
	logging-data="1251235"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:PsFazc7ZexhH5H2TlsvnWaYZNQU= sha256:PGVFJ/hwuHcE4jhwn05SDWlt0AFUR0FbaDbOmOi1fIg=
	sha1:q7muL7xqH9nd4EnSlNjEImAh2h8= sha256:n1dU4D4qXCK/nL7BHuKQxBYfz9rI3rldI+LoodoTCZc=
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 A3665125B8E; Mon, 26 Oct 2026 10:34:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.739
X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, 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 hWXpdGFvtUbT;
	Mon, 26 Oct 2026 10:34:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-351728-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 5312B125B7B; Mon, 26 Oct 2026 10:34:12 +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 74F8F2C3C6; Mon, 26 Oct 2026 07:31:52 +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=1792999910;
	b=yuj5eaDqZZpaoh6cWaOXuDU50KZfIeD3QEWP9p1x6XkCpJMX3d5kQk5PQcd/nHe5ZNYM
	 +3/0L0TSv4itCQy3t020qtVJs9fnqc6ae8ToQVP1V98rhuNpUyC0kIHFnpnn/d/zTJjO3
	 29reZ7Q4PL56n9TmPi6QWqYaEh7K6eFFee4nIIoj1/sITEp+wbIr3IzLgC/LvTP6YwEWH
	 p9AyNk5+0X5VOE4d7U6N9+O3VpBh0S+N49K4vwxkqHwsifz9JC5iwMOHIYCaJlqrvz4VO
	 a2Lt/NnhVyaAg1bs6ZdoInFv/ZMjcKmxyR1q+nYxp1I5uuBxwZ8AZyJKdUDlGE5gcGw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792999910;
	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=ZkqQpyyWgiCT7yM+GqqzrqW+e2YFFZpIluFHk3eQPZ0=;
	b=uJtb9InrfwXNWCTrYyeSuGd1gNd1z+/C2xo8Rn553a7I4prVsyDScuVOiLNXORfUZU6I
	 9v2sY2I+zhIv9gaAkCCSHZCowjBTOWqfLQ+u/RSt/cNGHLEmovSmoixphu5PPYFlIv2wk
	 OPMq+98ChpBvsun70Jtq9E9a4YYexOfnhwFwGwS6AqoAsMS9nJYoA/bfaxk9OS3awdHLL
	 0Vs70qFmwUeZJCHhNgTMFVl70Zi74a5FLUHXQgOvKgrapm123DViyonc475C+Km2O+VxK
	 ENXrKO71yrYucWuKv/vsRpmZT736vQoTH9KD3MJC5cmyuC53+841buKik1MJfF/ESYQ==
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=Oa3hquin;
	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 3BF2E606A323;
	Mon, 26 Oct 2026 07:31:50 +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=Oa3hquin
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=1792999909;
	b=s6DypAVx5dCWx+a/VySB9ulGysoykR1Y4G+Noy0sqEXP19Fz7GJwFQoj8kI0s/FzQktl
	 nsJ5snxDrh3vN1Xc02JtETYycdlsDsV8l1De6z4wSB+uViqhH/kCiLQSahSfK6xTTEayW
	 y5jTfs8ov19E2SR3XKE/TGe2C1o6e6kSHaPGUtKiQFx3xuTZQKeB7+Bs/rDuV5unuQ1nK
	 O9WKawjLt1dgeFdmK1+7k1N2bIapPgJgpKpYKu/hDBstdvhegqv+ZSLric5Ae25PinJHG
	 ctSazjgJBfoxt97RGUFMCCrq2QZDxzhONQW5IrWrbak6UqebgZ3hYjQ7ALCKdLy6iKA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792999909;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=ZkqQpyyWgiCT7yM+GqqzrqW+e2YFFZpIluFHk3eQPZ0=;
	b=pebzMGwvxnr5mjpJNuiKH1cW3Mpg42oyOwaScV5IsSSVhZ6QKGXyy+/WWFs5kRMgb6lc
	 SmSqQcoeuxJK6eOXNOMQJ2DAJVuJgCtLM5n1WQS44Qxiwdto+piozzuvLGp8xFszSK/4Q
	 uB1ZDKDdczQtAVJah03yUXL+ACAdKYTAPtCH+zsmvKB29MAnEtyotsM8EgpYEuUqcGmOw
	 QlnRr7Dy9p2Hot9380UTMaRsjGMra5FXWg9PWkejcCigq7AnRkmkiUgE7jTnmovbsoXuS
	 uBrJha6eetu5Xieq6gngKUnT6fWpzC+3ATc4S09c4jH4FwN/KQ+ygfP6WSifn5Evk8Q==
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=Oa3hquin;
	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 1EC13606A31A
	for <netdev@vger.kernel.org>; Mon, 26 Oct 2026 07:31:48 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 113131F01825;
	Mon, 26 Oct 2026 07:31:47 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792999908;
	bh=ZkqQpyyWgiCT7yM+GqqzrqW+e2YFFZpIluFHk3eQPZ0=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=Oa3hquin0ij2801hUnrC4cTmvA9l9ed8+ue1o6FW8TVNFEZNB2fhyNrg5b51Z3Chh
	 KHfQmmRPKGu3k1CY7BDtpuY7sA/sbsTZ0hmICskKuEGYvBrGph1KCcjYE/KICJda8x
	 kzKcRFLtDR1jx+ssq3F1hphltCWLg3oM0rrXk9e21PqaEKkfPJZ//VRM/Yd7hfdYiO
	 3GaA53yb7rdej0YSohAPs6AtUWmsWgHXto82dme/LkO37dO0W8/c1aciS+SHL9+Izr
	 p/cxYAcpoK7P7uc7jF+qtbkgG1bTfPtJHzGatBKHmqwWgb8nDKVERSOW8zaPQ9lW/I
	 PTDj7ZS2ZYGqQ==
X-Cc: Chad Monroe <chad@monroe.io>, SAYANTAN NANDY <sayantann11@gmail.com>,
	netdev@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: <54711f8d-d71a-43f6-876c-d32f4c562b8d@lunn.ch>