Article View: linux.kernel.netdev
Article #11342[PATCH net-next v2 0/3] net/sched: let hardware only actions drop per CPU stats
From: Alexandre Cassen
Date: Wed, 04 Nov 2026 21:45
Date: Wed, 04 Nov 2026 21:45
36 lines
9563 bytes
9563 bytes
This series lets hardware only actions drop their per CPU stats and
the tunnel_key dst cache:
- skbedit, police, mpls and sample honor TCA_ACT_FLAGS_NO_PERCPU_STATS.
- Action init sees the offload flags of the filter, so a skip_sw filter
alone now satisfies the skbedit queue_mapping check.
- tunnel_key skips the dst cache for skip_sw actions.
v2:
- Add patch 2 so that a skip_sw filter is enough for patch 3 (Sashiko
[1], Jakub).
- Give the memory saving in patch 3 (Sashiko [1], Jakub) and patch 1.
- Drop the race note from patch 1. Commit 1800f27a5ef8 ("net/sched:
act_api: take tcfa_lock for hardware stats updates") fixes this race,
which Sashiko [1] also flags.
- Add Jamal's Reviewed-by to patches 1 and 3.
v1: https://lore.kernel.org/netdev/20261009051930.3619697-1-acassen@corp.free.fr/
[1] https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261009051930.3619697-1-acassen%40corp.free.fr
Alexandre Cassen (3):
net/sched: honor TCA_ACT_FLAGS_NO_PERCPU_STATS in more actions
net/sched: act_api: pass the filter offload flags to action init
net/sched: act_tunnel_key: skip dst cache for skip_sw actions
net/sched/act_api.c | 17 +++++++----------
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 +++++++---
6 files changed, 31 insertions(+), 29 deletions(-)
--
2.43.0
Technical Details
Message-ID:
<20261104214607.556269-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-356970-linux-kernel-netdev=dewy.ruShow 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-356970-linux-kernel-netdev=dewy.ru From: acassen@corp.free.fr (Alexandre Cassen) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v2 0/3] net/sched: let hardware only actions drop per CPU stats Date: Wed, 4 Nov 2026 22:45:54 +0100 Organization: Usenet Network Message-ID: <20261104214607.556269-1-acassen@corp.free.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3508353"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:wiKOVsVfHexgL2rjeUqXMtFKcH4= sha256:q3gTnBNYhu035q1fw84K+u4jWTvkOcYewbQP48xYnlU= sha1:KhVN94gjP1EsCboKKNrh+XJoc/k= sha256:HNkYdd3aYaePcGa9XDQX6vaSieDw2sxGb23u2kjwMv8= 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 7FD26112DD2; Thu, 5 Nov 2026 01:52:30 +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 2fv5mLHDqSjs; Thu, 5 Nov 2026 01:52:26 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-356970-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 609B1112DCF; Thu, 5 Nov 2026 01:52:16 +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 ECEA7168F65; Wed, 4 Nov 2026 22:05:09 +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=1793828781; b=zjrvleYS0vMgIKEC8BbXpbHLuJOqIZqGAr1V3fK+2hN0BuawICJVYhCHUWJaalo5zcfC /FZ5dZxk40DgmdUN4YC9KCDXtNIKayEChOqifGLu1iSFsH0aZDB1siNlK4VDBt0YhDZCT SFaAbdvnJfky3+gEzcpt7hEXd+hywONG23mKPRb/hhiZAi2NXFIVvk4EQD78nlW7pWJvV MjCBQgl3J+d5jojC2WAf4nZ1chVBXCJQRNXAh8P39womli3bYs2qG/YsKVh/eI4p+ojiJ 1VOIsLSFZHq/BjCRp0dtTBF2ADV93VjScT/mUboPkx3gR9NJI1I4wt9acEy/ws9h9vw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793828781; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To: Cc:Subject:Date:Message-ID:X-Mailer:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Transfer-Encoding; bh=Ec5yxUyaEP25Q/oUGA4H4MV4YE5ouxLMYYhMfOZGe1Q=; b=KTbObExRGztOYqD+tKChont5nGzmBSW+8KvFpPnOApF0ZrActihKVbmibDWCorTqSp+J kB1MmxrGwWzbv9WnnAAAhY0bsK+qO3t6wxNekT9V/moZFZrOIWRtd9PYL7I9iQPRFtR9g 4okcwJgq/9lLJzzseQqkv+dcTclRVy6irhvmWMddLECWIez7pyQqCDzy4NWo6flmcx9kW 1upHXpkasC/gW7fviNikrMIXbg+ttjIfiiVTGGaAj0zLiuhsIIqKjUg5y5iZw7rt/knbs b+wCFiPK4iydkjy5yn94t6xF3sUPaeL7PoFJBpx1eIkfZAn6g8GbuEaG0+6Dm/kw+/A== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=corp.free.fr header.i=@corp.free.fr header.a=rsa-sha256 header.s=rcs header.b=cDeIPDmu; dmarc=pass header.from=corp.free.fr; spf=pass smtp.mailfrom=corp.free.fr; 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 C99D6606F28D; Wed, 4 Nov 2026 21:46:21 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=corp.free.fr header.i=@corp.free.fr header.a=rsa-sha256 header.s=rcs header.b=cDeIPDmu X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=212.27.60.169 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793828780; b=hh/mBAv5AGhSbOSbp5uUb9zExyDpQ1GMsiao4+zjYFO+7U+WK4ZP8jdfBbkkFgEtVVgs JVoe/tsd6nkrtOHfCQb2SAJnfHW5ceI1mx/Gp2lpnuLjehTjluKDNkc/qUZS4Uk03KhnX 4E6URhg3wdZr0reAWIbY2XgY/nuuNgTKibMv3+nuceRrMGGKCAJSwPtB2sM6A+VWnAqxK XhOUhKwN/RcfxR/wZWn/0EeUQvrIg/I7lpWdWgN3j9J4T5GcfEwWAFCF819L6I88Atp0m wDEWAUXe4uSbmwU+Xr5VfCRT7Zq2O3QObpf8H/lWtt+8GylVz7yjMokrIhqnyRpY2VA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793828780; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=Ec5yxUyaEP25Q/oUGA4H4MV4YE5ouxLMYYhMfOZGe1Q=; b=hC+2HEyWzZ2/Dp7Cnz5/D0vronJrWmb8cnAAFfCjZ6VjZk3XbUJbX+VkVajNY2UzY6iD hYheUABzeF/PAa3Fb7VTSZvWOxcf85yQ338sn1SAE7JfQ748yVQxP1G9Nvhuj9+TIJkml ZVchaxjH4Mmnrj9LjPf3CpfVNNva3uXalNWnYneWDR/RTNeVYhBtf4IxNT84Dvry1Bzm1 jX/0uA6NxFTf0PN15rrVsG2pOjl/3T92uybiI5fYCo6F+OTSuccy1016yzPMu1qTT3L7G nnZH7I0LrfWHd726QQUEAKpNSz24HBhNuHNV1V+z7w4WrSmevPIemlR0meYldSDMZhQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=corp.free.fr; spf=pass smtp.mailfrom=corp.free.fr; dkim=pass header.d=corp.free.fr header.i=@corp.free.fr header.a=rsa-sha256 header.s=rcs header.b=cDeIPDmu; arc=none smtp.remote-ip=212.27.60.169 X-Received: from rcs.proxad.net (rcs.proxad.net [212.27.60.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23E60606F280 for <netdev@vger.kernel.org>; Wed, 4 Nov 2026 21:46:18 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 23E60606F280 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=1793828777; bh=kHccQU20VE8id2uLCz+zTe/NtLXqRcm03EMpvqiYi9E=; h=From:To:Cc:Subject:Date:From; b=cDeIPDmuIUr+fbQAj1haI22eC3sWqHM0aVIYrVUORA6hRik/ZjzyvfSBnE0A+QqnP pBsz6x2RKaO5oj8KylaNVkS8puA4AqeH4f+4MjtsDw5rQYpdAotFTZQWL2wgkrcsAe LLujOYi7VnFwLWsveebMjjyIUh1wuO2lSeOBc548v+qgXjJ7TU0igUNjI8hsbzvyxA 17mOGuh8TZ4BXQ9yu8Dc+M/SXv+kbh1a/knDohqgQCnf85WexhVybo4S3urFOgq9RN v9CvmpoxPljfuS8UUoTVszcrdkrVLEZ69sUoHlzPa9re9RB/V96JsD75pAluiabV5y /JIB6kw7FrOGA== 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 0198344C007C; Wed, 4 Nov 2026 22:46:16 +0100 (CET) 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>, Vladimir Oltean <vladimir.oltean@nxp.com>, Ido Schimmel <idosch@nvidia.com>, netdev@vger.kernel.org X-Mailer: git-send-email 2.43.0 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