🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #1047

[PATCH net-next 0/2] net/sched: let hardware only actions drop per CPU stats

#1047
From: Alexandre Cassen
Date: Fri, 09 Oct 2026 05:19
24 lines
6422 bytes
This series lets hardware only actions drop their per CPU stats:

- skbedit, police, mpls and sample honor TCA_ACT_FLAGS_NO_PERCPU_STATS.
- tunnel_key skips the dst cache for skip_sw actions.

With no_percpu set, the first four count like gact and mirred but also
share their race with hardware stats updates when an offloaded action
also runs in software. A separate net patch fixes that race:
"net/sched: act_api: take tcfa_lock for hardware stats updates".

Alexandre Cassen (2):
  net/sched: honor TCA_ACT_FLAGS_NO_PERCPU_STATS in more actions
  net/sched: act_tunnel_key: skip dst cache for skip_sw actions

 net/sched/act_mpls.c       |  8 ++++----
 net/sched/act_police.c     | 10 +++++-----
 net/sched/act_sample.c     |  6 +++---
 net/sched/act_skbedit.c    |  9 +++++----
 net/sched/act_tunnel_key.c | 10 +++++++---
 5 files changed, 24 insertions(+), 19 deletions(-)

-- 
2.43.0
Technical Details
Message-ID: <20261009051930.3619697-1-acassen@corp.free.fr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343438-linux-kernel-netdev=dewy.ru

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-343438-linux-kernel-netdev=dewy.ru
From: acassen@corp.free.fr (Alexandre Cassen)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next 0/2] net/sched: let hardware only actions drop per CPU stats
Date: Fri,  9 Oct 2026 07:19:27 +0200
Organization: Usenet Network
Message-ID: <20261009051930.3619697-1-acassen@corp.free.fr>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1037761"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:eUs8a5toDqVZo+qVmN4oWCxWRO8= sha256:eaEAVARnbAY+hxVbib9oFR1BrLMIS/ro0HsBZpnu2Tw=
	sha1:D07gvXQ2If3ewdfIVcSmzzCm438= sha256:rIJnIZop9OzYUQDPF4b81TtU20HXsU1RVTePVcnd75w=
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 06AF710F5BC; Fri,  9 Oct 2026 08:20:23 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	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=corp.free.fr
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 RqKBXzrZOgKA;
	Fri,  9 Oct 2026 08:20:19 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-343438-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=corp.free.fr
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 1B96B10F5B8; Fri,  9 Oct 2026 08:20:14 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sin.lore.kernel.org (Postfix) with ESMTP id E69F025737; Fri,  9 Oct 2026 05:19:49 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 213B03DCDA4;
	Fri,  9 Oct 2026 05:19:49 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=corp.free.fr header.i=@corp.free.fr header.b="o3lZKCdi"
X-Received: from rcs.proxad.net (rcs.proxad.net [212.27.60.169])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id D84E73DDDD2
	for <netdev@vger.kernel.org>; Fri,  9 Oct 2026 05:19:39 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.27.60.169
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791523189; cv=none; b=ZcyQDNTF32MW75XeuHsvUP4XPk/Pn6vrXM5rcJaWh1GKXdv1nr4suSnMMRuVFhu5JrsY6hg2cY14iCItOB+ZzFsbvrZtGrl8Hz4bdCDzpK+7X8H3FYMsSP7UvxTe14XxvMjz5PLljVMFt3vCl3O/Xepkdui3i4KsVCBH8TsCSuQ=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791523189; c=relaxed/simple;
	bh=Oab/fDKDmcieLlNRkjWNrwJWxYb9aVvIg9iAAVgwYzY=;
	h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E0dLGNW6TWSmQW/CU0d73yikRgGf+FkyBg5qaJw4uEcU/KlU+UkBv35iII5PMOhQ3JZCfPezefp2NfIqw7kXh5rHdbXAqFQm8LDJwPYgjjW1CMGOCYvTVrOdinMYf4qJb21drCXlQFkmuapPPDkmJDj4U8cYF3hGAZkbvH9V4EA=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=corp.free.fr; spf=pass smtp.mailfrom=corp.free.fr; dkim=pass (2048-bit key) header.d=corp.free.fr header.i=@corp.free.fr header.b=o3lZKCdi; arc=none smtp.client-ip=212.27.60.169
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=corp.free.fr
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=corp.free.fr
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=corp.free.fr; s=rcs;
	t=1791523178; bh=Oab/fDKDmcieLlNRkjWNrwJWxYb9aVvIg9iAAVgwYzY=;
	h=From:To:Cc:Subject:Date:From;
	b=o3lZKCdiG12Efv+acc0Z7uicMkExicLgu4GcptUsVDnlalFNT+E5d+dLqtjVVaP4D
	 BaZw4wd+kmwuSyZxSagRTdtgHlw6BUgZ0pb7i9iPjst3DEPIbQF3keCpcdftkheEuQ
	 eQEF/c4WKtDebq0aAe2yx7tgxCyOG541QQNz06RvTgNyrTa9F7JrXhC3nZUEuNMkmi
	 gfeIGbZ8PHkc89zOcULtPlbwf3+/81O4y9oMHBS0+TU6R1CXxumV8wwn4WZtm2FPdG
	 jw6XCob3tW3tzh5XKJYuwidU83dwa2nziVHRsKdJbRsGbnfwGUCUKltxOsi7cz+12h
	 H0naxDRIQq26g==
X-Received: from lnxos-dev.home (82-66-150-212.subs.proxad.net [82.66.150.212])
	by rcs.proxad.net (Postfix) with ESMTPSA id D368944C0145;
	Fri,  9 Oct 2026 07:19:37 +0200 (CEST)
X-Cc: "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	netdev@vger.kernel.org
X-Mailer: git-send-email 2.43.0
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>