Article View: linux.kernel.netdev
Article #16590Re: [PATCH net-next 06/10] net/sched: cls_flower: add enc_key_id mask
From: Alexandre Cassen
Date: Sun, 15 Nov 2026 09:15
Date: Sun, 15 Nov 2026 09:15
25 lines
9722 bytes
9722 bytes
On 11/11/26 20:12, netdev-bot+sashiko@kernel.org wrote: > [Severity: Medium] > The commit message says truncating the mask to a 24 bit VNI is correct > when the key fits the VNI. The earlier patches in the series only check > the key. Doesn't that miss a mask with no bits set in the low 24 bits? On cxgb4 it does. The truncated mask clears encap_vld and drops the tunnel match. v2 of patch 2 refuses such a mask. mlx5 and nfp keep the tunnel match. Their VNI mask becomes zero and the rule matches every VNI of its tunnel. The software filter does the same, because a VNI has no bit above 23. > Should i40e_parse_cls_flower() and iavf_parse_cls_flower() reject an > enc_key_id match with -EOPNOTSUPP, at least until firmware support for the > tenant ID exists? That would stop the offload from appearing to succeed > while ignoring the key. It would probably fit best as a separate fix. Agreed. It predates the series, as the commit message says, and belongs in a separate fix for the Intel drivers.
Technical Details
Message-ID:
<ce9ba19e-14d7-44c3-bda4-83cf5f90a6fb@corp.free.fr>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363626-linux-kernel-netdev=dewy.ruReferences:
<20261109131039.959438-7-acassen@corp.free.fr> <179442432794.2199510.1364864921481333835@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363626-linux-kernel-netdev=dewy.ru From: acassen@corp.free.fr (Alexandre Cassen) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 06/10] net/sched: cls_flower: add enc_key_id mask Date: Sun, 15 Nov 2026 10:15:22 +0100 Organization: Usenet Network Message-ID: <ce9ba19e-14d7-44c3-bda4-83cf5f90a6fb@corp.free.fr> References: <20261109131039.959438-7-acassen@corp.free.fr> <179442432794.2199510.1364864921481333835@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1761248"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:uNVIiriaKV1wg1LiriiTK298Qrw= sha256:zsf3KuiqsFUGwKgDJ7gOXQbqEpcl7uG6ezlFAIa47iQ= sha1:Y6MkUPR3t5ck/JWW0yoHPs2Osig= sha256:TNJbB47UZRYtOZ7m7XfZBFyCt7Yq1wUq6ieeKkFmuxU= Content-Language: en-US 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 59805114985; Sun, 15 Nov 2026 12:15:47 +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 emTX4AElqOqk; Sun, 15 Nov 2026 12:15:43 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-363626-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 0A7F1114983; Sun, 15 Nov 2026 12:15:32 +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 416D433C2D; Sun, 15 Nov 2026 09:15:29 +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=1794734128; b=RnQnkadPAnmY/XcleC5+nnWJwI5xXd99VfXsxF5qe/yymrvSWzayQg0SCY2uwAg/Jgs6 sZOthLh1lApYTskjQhH3+BQk4BzhLDR1T7D+DfRkOTyMDkg7c+PfkzFY8S+mIsaVG+IoT bTHxe9uNlQpl56M7ZauSUJinMAIAiwbk1t/a8l3SpfWvVt32vQnIUaWTxR/56cdJPMj6+ bThLwGWvB0L1GtRrWhktSVj52WVOrZJU9TLWJzpsCU0JYcRIdQJsUhIChnOQNmw+ADdK8 J3YvJD4yHNHIW2Eyh/I7lgg4UXyTXDqZ/QVFeJyF1Y/3R/ECZMu/5qBm+0su4H2Nuag== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794734128; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received: Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=5biTwganlbstyJybL78+tl6I7DrpousHi8Dt7rvXJuk=; b=G21o2u05zO1Zp3c8liNQgh5M+lplCDBGbZKjHvPrfQCYzLfftUsAwqsPDF7yhP1b/eau esTgpvG5U6XGRSDybptPBcbaFookWDzXL9sLqcxffIwBY98LZ0tWwobgwAP4cdznbz4lK KM5aUnIZBStjbYR5XAznumliFgHKC3J5ELkntGKt5jBto86q7Nfv1ULaqBpDL9ge56Qoz M04ZLY0jgtoDdlRs9SrUJplkGLSBlv837Mt7zFdmXEJzASGQrUeRt1rfzJ9mbK4Gt0rG7 UojeZfWbYeaaWrDKxukJZkezfaBBwzafNVKD9UY5ht8V8wIEe1GnPHtOfUE+0Tykj3Q== 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=hyFzxpdu; 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 2D6CA606A339; Sun, 15 Nov 2026 09:15:28 +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=hyFzxpdu 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=1794734127; b=XPm2bby7Kfwoz9LSGb3by0cu8F85tSoTjXePa5gObumcrGzbPV/gHnyv9ead2CjJ2F08 DwSkV+Bzhn45x7J9ia8IPl8Hl14gnTIELid7ebo0mgbmfDNkURlY19Aw66X5za0rHMTfq yOJyHkBs2atzbgGttCyRZ+i3bei4PQd/1wjnznw4osMpxUsN50israbvP2Ub76r2H2q6l sGf+sHT0TCp/aU+BR5YekXw241rJ45+3YWxS3XrudoFgd6RVnmgu+A9eyDplUNDJcMZjY 8BMob4kwBwss0yHsvBovT40ngXG+DXi4c3BDILoJLz0TnLluzWm28/Uruyn9VG2r7WQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794734127; h=DMARC-Filter:DKIM-Signature:Received:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=5biTwganlbstyJybL78+tl6I7DrpousHi8Dt7rvXJuk=; b=ERh51APb7nWcLnZQN00G92rmpr0lMwK8seFNsfLq16kpGf8aFJyXgZe1z3hmaX/C+ttg Q7If7mgCrWMInAqJkDqRPPjXusRCi3ZPOIP0w3O+Tee1qfiXU3/JaQIwu+Kb+F9CkVU4q C7mRH5bdhs8lu+GvtzDdb1zWb/F/p83TkfGfAWZXO1Fgk7GGTjtLVrcpT/gy7wfvCAhOp evcApbiL36wplX/AyEmimefVwxqtAsjy5z8q4NE/BRKt7S6uImETxhMJTawvM7J0xj7ED LT2CqmJWhVJTFGZDVmZHlBcCcuMHaS8Hu7SjzOgZL9VdejZV0atAZTgot9o6/BphWlQ== 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=hyFzxpdu; 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 D4AF0606A31A; Sun, 15 Nov 2026 09:15:26 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D4AF0606A31A 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=1794734125; bh=JS9ETpJE8r0qzCNQTlwZSK4sKCDJAI4wEW50Q/BackQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hyFzxpdupagXyFnDRyMknaikVvhRatSXKBOR6SSM8m/qiRHjk62G88e2x+x6AAHIH jcmFGmROSrapIQPtYVC2sbtma2v7TlG3R/lb1WfVct6PUt6kfAxBRZk8f3hvib8+hi /80CWkwUQoJN16Mar1y57t4fLF11jTABcK4R7FixMzBzA3tp/JhGfhFihiuql/ILqT p2kxNlMR4Ajm39axUAzp7xI57otjj2F2IsSm1B8weH90854zzZI+LTqPNKj6e4QgDT RmLSXTRWGlY0WknWKOJELvmWIIVIpXj/yK4lYhIViBulrcIUP62ZzJqAxhY9YdkATc paHjSKcEvka9w== X-Received: from [0.0.0.0] (unknown [213.228.1.188]) by rcs.proxad.net (Postfix) with ESMTPSA id 70B2644C03E2; Sun, 15 Nov 2026 10:15:23 +0100 (CET) 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-User-Agent: Mozilla Thunderbird X-Cc: saeedm@nvidia.com, leon@kernel.org, tariqt@nvidia.com, mbloch@nvidia.com, jhs@mojatatu.com, jiri@resnulli.us, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, michael.chan@broadcom.com, pavan.chebbi@broadcom.com, bharat@chelsio.com, donald.hunter@gmail.com, corbet@lwn.net, skhan@linuxfoundation.org, rdunlap@infradead.org, dsahern@kernel.org, idosch@nvidia.com, 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-In-Reply-To: <179442432794.2199510.1364864921481333835@kernel.org>