Article View: linux.kernel.netdev
Article #20543[PATCH net-next v3 11/11] docs: networking: describe tunnel key partitioning in TC queue filtering
From: Alexandre Cassen
Date: Sun, 22 Nov 2026 21:31
Date: Sun, 22 Nov 2026 21:31
43 lines
10779 bytes
10779 bytes
Tunnel key partitioning steers blocks of tunnel flows to RX queues with a
mask on enc_key_id. Document this use and what enc_key_id means on a
physical port of mlx5. Also document what happens to such a filter when
its queue goes away.
Signed-off-by: Alexandre Cassen <acassen@corp.free.fr>
---
Documentation/networking/tc-queue-filters.rst | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/Documentation/networking/tc-queue-filters.rst b/Documentation/networking/tc-queue-filters.rst
index 6b417092276f..14032375d630 100644
--- a/Documentation/networking/tc-queue-filters.rst
+++ b/Documentation/networking/tc-queue-filters.rst
@@ -35,3 +35,25 @@ queues and/or a single queue are supported as below:
devices, TC filter directing traffic to a queue have higher
priority over flow director filter assigning a queue. The hash
filter has lowest priority.
+
+Tunnel key partitioning splits the key space of a tunnel into blocks. One
+filter with a mask on enc_key_id steers a block to its own queue. This
+helps with traffic that RSS cannot spread because its hashed fields barely
+vary, such as GTP-U tunnels between a few endpoints::
+
+ # GTP-U TEIDs whose two top bits are 01 go to queue 1
+ tc filter add dev eth0 ingress protocol ip flower skip_sw \
+ ip_proto udp dst_port 2152 enc_key_id 0x40000000/0xc0000000 \
+ action skbedit queue_mapping 1 skip_sw
+
+Not all drivers can program a partial mask.
+
+On mlx5 devices such a filter runs on a physical port where nothing
+decapsulates the packet. All the keys describe the packet on the wire.
+enc_key_id is the only tunnel key such a filter matches.
+ip_proto 0x2f, or udp with dst_port 2152, 4789 or 6081, tells the hardware
+which tunnel header holds the key. The software datapath has no tunnel
+metadata on such a port. Only the hardware can match the key.
+
+Reducing the number of channels below the queue of a filter drops the
+traffic of that filter on mlx5 devices until the channel returns.
--
2.43.0
Technical Details
Message-ID:
<20261122213200.3207385-12-acassen@corp.free.fr>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368843-linux-kernel-netdev=dewy.ruReferences:
<20261122213200.3207385-1-acassen@corp.free.fr>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368843-linux-kernel-netdev=dewy.ru From: acassen@corp.free.fr (Alexandre Cassen) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v3 11/11] docs: networking: describe tunnel key partitioning in TC queue filtering Date: Sun, 22 Nov 2026 22:31:59 +0100 Organization: Usenet Network Message-ID: <20261122213200.3207385-12-acassen@corp.free.fr> References: <20261122213200.3207385-1-acassen@corp.free.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3728566"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:500tiWtFg0JCY1P2uUsaU/E/4Ws= sha256:P2AiWCUCxXeRuoaNZCmKDJtFcxrl8K9FC2oLLlfpiko= sha1:8KrWr6YRhbLDQNmmmkY79fAZH2I= sha256:BzI0i/xuxZKnONj84+jfqJrsN8E0s+EfIMRSO9O6KzM= 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 629EE125D83; Mon, 23 Nov 2026 00:32:56 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 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, URIBL_BLOCKED=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 l_-2k1vUzbon; Mon, 23 Nov 2026 00:32:53 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368843-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 6B67D125D86; Mon, 23 Nov 2026 00:32:45 +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 A506E2EB3B; Sun, 22 Nov 2026 21:32:24 +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=1795383135; b=yq7l/NlllP21T2ybIwxuFbPJ0pVw52rxncBGFXBJc4J7vUKzh4CiGVvH2TsHMvcpm0CX SaolQYq3wqE3vkYKyjWZvcQFRQURLoz5Jcf5DXMNMH5YsxlLZZdVgU8+MXwidl9wjs+1K 68IMEGAvNDzIitA/2nW2HEus8AkTuI7CHM6yBFEdUIFgrhoAvyuCdT9nNwsTd0eAlsJTV sTs2HfVVDLqjSDjwGYAv1iB07CWKYN/U5tzOjHrZwH8ifoP7KifM7v+iwIXwni4sE3UiQ ewybAeQ6PoneXtaxnCqP2R4UU510n9HhWkfZVVjEAg3kXTxQlkFhtCHiAQv09a989wQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795383135; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To: Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding; bh=WwkPKboaRHO3gWj6crYxjpzj9cX9xx9wCpXmZOCeZgY=; b=cyD9HyvpzE8c1q4MGc4O6Z49MhGPaxHJMox1FbNCOsO7d3MHqQioKXUN6IcV1c64rcqu O8c9KG90BLMroC8Wvdlxzq47QjZKFM7SckCfHTJmAU7Hasav+7dTFiodFxBuQmZUbLN3U RbKXnEmm2+ndRNI/HLXY3UQ272FJ1yafXzYs8l2a0kv4PjnW5XBaNhV0BgbjubBXxTItF F6T8vB73fYf+duGTyZ+DSfe6yJit3agl8WH5ylEqll+hmhbgIhssbEC1uJPddbyeqyEyo IaZS1hTWMbSij3IcwJgH2qQVDF0Ak5N/CcuQ7DOw6jjO3HHnmlVoZHt+Tcsdu+oftoA== 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=FvulZixg; 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 B938C606A6A9; Sun, 22 Nov 2026 21:32:15 +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.a=rsa-sha256 header.s=rcs header.b=FvulZixg 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=1795383134; b=SSsssYP5WlXd9eJd5vnpb4lc4eMWuWsGLC1Y4LX7AmLRrJ//6ipMxNmuy0rRfHcYBG7m 0nLCtKLteoi/slw9aD4RfTlHPjXV4vXTbt1FspPUdq/V07e91OPChVcoT4FhH+xNlhTXV kYMYsIUmB9MprvIHYxww+jQfcBLovZurXoQsKnh08JMLcOLLp9SAGDVjnLirwGuHKzzOZ PGFZ+vl3m/Z+57cEVjr8QRwZ7tEUmjXy4PNk75THiYCHfPkGxQkokMKxQDsmV2p0ytGL8 +pLVNMNgMfc8y3Pqnt0Yl7YFpTBoIqcBhXmFPItmf1AbPtm/uQVR0/M+SDkbAvRYQNA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795383134; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=WwkPKboaRHO3gWj6crYxjpzj9cX9xx9wCpXmZOCeZgY=; b=dagiXs4c3WJTYY4eveJknsIZmjzQC4YMv7o+1knneN+1mB2ViSswccwHqXUR8jceIWtq YOJbz2vocDifvMN95uqKkZ+297pBN5+OpUUrg3I+JSJtRbfgVitOWoDXpuRZn3Z+2IPXs DSCls/yeVo6jfvSf7FMQR6cSwdWG+5MgVGR48pf1ICfg9lPBrU0aSrJ0q7ORFFfvwlmzD 0uHAPGsa4Ew+pjF5q2jbdk+/ujb2Z9zWRXFyyWzwATTYS0ZcGFtrg8f+ZHhEwVZtB0trC xsjxB5xjsXVzf3jAYnVOTT4MUPv3QJ+8yV+sJDxJ2el72RGa5SiZbbc75is2ZNCS/VA== 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=FvulZixg; 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)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32F09606A688; Sun, 22 Nov 2026 21:32:14 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 32F09606A688 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=1795383132; bh=ETQLiklF/DMETVxTZ3pQ7sasKCndEu5GA0chMOax7tQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FvulZixgq4PJqdQfnQ1IeJS6BQ0tWD3bljnhuRLiLMqe2y3GXz+1PyfD16S7nW8+k 81lXCA8eZuRfO/2q3etOsAV3tKSE41p2viZH/zydXNIvE+DIjtFCWeG8TzLAysnX4C hP9wwkFIFAE/1G4cZCCNL0AtrI/5fz09jEemEnzsi4JJm6Fy5ZnhdUrP6ryNCwaU/T hP3bS4AgErdCqJB+R9preRvcOyGa3BJBgoWdfrppmZBymGKeaJ1XcMyGNh2bRGUon9 D2u+JiOrF6HlqQVTarc1y8y9v36P8+Ev06entFDnof6u0o4Xb4qsHaWo46kuCO1jrP A29vEOiPd/KLA== 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 6DEBB44C0B5D; Sun, 22 Nov 2026 22:32:12 +0100 (CET) X-Cc: 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>, Simon Horman <horms@kernel.org>, Michael Chan <michael.chan@broadcom.com>, Pavan Chebbi <pavan.chebbi@broadcom.com>, Potnuri Bharat Teja <bharat@chelsio.com>, Donald Hunter <donald.hunter@gmail.com>, Jonathan Corbet <corbet@lwn.net>, Shuah Khan <skhan@linuxfoundation.org>, Randy Dunlap <rdunlap@infradead.org>, David Ahern <dsahern@kernel.org>, Ido Schimmel <idosch@nvidia.com>, Shuah Khan <shuah@kernel.org>, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, oss-drivers@corigine.com X-Mailer: git-send-email 2.43.0 X-In-Reply-To: <20261122213200.3207385-1-acassen@corp.free.fr> 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