🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #23978

Re: [PATCH net-next v3 09/11] net/mlx5e: TC, reject tunnel keys without a tunnel device

#23978
From: Alexandre Cassen
Date: Sat, 28 Nov 2026 20:16
39 lines
10400 bytes

On 11/23/26 22:34, netdev-bot+sashiko@kernel.org wrote:
> [Severity: Low]
> Is this extack message accurate for NIC mode flows?
> 
> In NIC mode the filter_dev passed down is always the mlx5e netdev itself:
> 
> mlx5e_setup_tc_cls_flower()
>      return mlx5e_configure_flower(priv->netdev, priv, cls_flower,
>                                    flags);
> 
> The only indirect block registration in mlx5 is the
> flow_indr_dev_register() call in mlx5e_rep_tc_netdevice_event_register(),
> and only the uplink representor init path calls it. So tunnel filter_devs
> only exist in switchdev mode.
> 
> In NIC mode, a rule such as "tc filter add dev <mlx5 netdev> ingress
> flower skip_sw enc_dst_ip ..." takes this path:
> 
> mlx5e_setup_tc_cls_flower()->mlx5e_configure_flower()->mlx5e_tc_add_flow()
>      ->mlx5e_add_nic_flow()->parse_cls_flower()->__parse_cls_flower()
> 
> The rule is still rejected with -EOPNOTSUPP. However, the message tells
> the user to use a tunnel device, and a rule added on a vxlan or gretap
> device would never reach mlx5 in NIC mode.
> 
> The follow-up patch "net/mlx5e: TC, match the tunnel key without a tunnel
> device" changes this string to "Tunnel keys other than enc_key_id require
> a tunnel device". Wouldn't that wording mislead NIC mode users in the
> same way for the remaining enc_* keys?
> 
> Could the message say that these keys need switchdev mode and a tunnel
> device, or use a different message for NIC flows?

No. The message holds in both modes. mlx5 only takes these keys on a 
tunnel device. The message doesnt promise that a rule there is 
offloaded. In NIC mode none is.
Technical Details
Message-ID: <0739630a-8845-4b55-bee1-22b2045f2aec@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-373272-linux-kernel-netdev=dewy.ru
References: <20261122213200.3207385-10-acassen@corp.free.fr> <179546967317.3135.11320901240553136005@kernel.org>

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-373272-linux-kernel-netdev=dewy.ru
From: acassen@corp.free.fr (Alexandre Cassen)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 09/11] net/mlx5e: TC, reject tunnel keys
 without a tunnel device
Date: Sat, 28 Nov 2026 21:16:12 +0100
Organization: Usenet Network
Message-ID: <0739630a-8845-4b55-bee1-22b2045f2aec@corp.free.fr>
References: <20261122213200.3207385-10-acassen@corp.free.fr>
 <179546967317.3135.11320901240553136005@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="1021266"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:i1i/vVG2O8wtmnzjvSuH++kjZa8= sha256:bj9G4jxt2tpaW4dPRSfDQG1XuY90c2ecWFSLHWOCvZw=
	sha1:eqQruXHFVH7oId705jFA8JC3y40= sha256:XPjC9v4hYRDumFnglkMLO6/a/aARDV2l7UKoVO4nZQ8=
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 D0D6C125F8B; Sat, 28 Nov 2026 23:16:35 +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 O-PAeGHS3qv8;
	Sat, 28 Nov 2026 23:16:33 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-373272-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 BD4F5125F8A; Sat, 28 Nov 2026 23:16:24 +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 1E49C27030; Sat, 28 Nov 2026 20:16:23 +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=1795896982;
	b=kyfWIfwhkFL4O7eDQW9phXInHOlfZe9J4hpzY4FBaJD6ec6tqQAtm4HgoMDSxxCkB/Hd
	 jau7b6H7jKEHwXmCLqS4ThalUtdHUXt55SpJTZpNYX7OklUMBTUw48IeQ03srI8zm3L39
	 vHQQ8K374M3jlho4koxXm0M9tb+uL9upkqK9RTH/5fRl15K9cuPIjwQzVbuuD4Wo+NYXz
	 aij3dtKPumY7xM3v+Of3ELNgcb2uMHq7KUG2kYBmNMTPUYCWN2/TtFVh7J50dHaGqFmqx
	 oIBcGko/Bw5gurfqIGYORItdQRQ5BVU9FelIfEZAVFbvBD97z+pZc0rZUT9wBYizs2A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795896982;
	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=/NCtGXQmLVn+PLdGDNjbFGLnYTRusH11bme70WdCG2s=;
	b=BMyw8mQeLnHtUa1odSZ8sBOMX4CkmtwKcAvOljTDARaBtL2r3+84T9DyX1PV3UzPYwPf
	 ybgzvB/ANpMekm+4CFxnNQ+79SR6t/enlay99rht/9CI7tqdbochUWMs3j8RTYLxsICvF
	 NajZLNafKmwk4dWKMlS+5M6wZnQv7IiijFGbZRwz9WAr+qwKJbedvurwfzwtWObdDd7uF
	 iDrzc99QCCd5qQuZlRx3gyuRMZel3qA3rvHmRIYnXQyY8jgxDUBjc+20u3WcZkTAN2ZeF
	 kuUAnwu1Z7l/8o4STTPqsv20l3IeXUGFSbFB68ny03/E7oCl/2o88yVhUa5Smc6I9/g==
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=hz4LxQlo;
	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 CF635606A327;
	Sat, 28 Nov 2026 20:16:22 +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=hz4LxQlo
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=1795896977;
	b=sxBsl0Nz+4CB6OwYjxn5vzz0+vBc+iX2SWxh5M18dPnHU+/cANiiJL2JyckGOdXxBq3R
	 U4pQufdOvEyja8hOI9RtpuYlF3FkPloG5e81vEI/Y78Pw/IF3yWj5HuNH0vujjj/UyrNW
	 f+dJRqsdXkjMuQNhp4MNQAebOXBrxMwby4AUDNwxhZLyQPzXgd9WVj7ZfnKuAoCYfKCJs
	 4SbNHbsZTnZStAdO5LIh+GwFiWIt55VfdRfKErWbqp7ddZyHgFDf6MapjIe2/Zdf844I9
	 HEshg5fHj1LBOgCyZzxa8REPtR0Lcgduw1/MH4kN2xRo0BmYhjTvIcq+7hg012qalZg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795896977;
	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=/NCtGXQmLVn+PLdGDNjbFGLnYTRusH11bme70WdCG2s=;
	b=eJzk1EAgfSUPPJicBsGiWmUWsUZsxpd+tf/7/rZ1mmfUEzWAhtyWmAYEyR3wmgJqVuLm
	 gCisLjc66bcfpWSxajXkyFqBvbxCXMyQwNMApwyQ8zbz/dmxwYjD/JLW3L1nxyj25+uGy
	 9fkiQO87Tdro2Kqt1lBJ741EbrfY8InlOLGQMxCcksRZwADUE4mY4DzoKMdF3pZVIm7ry
	 s2xbN/q4gjrOWavEG4KCNsZjzZR0vpAGwx2hWGBSnyGHDG0mVymO5psewnEl/tC35//Bt
	 bhzg2lFexh8BkmmpRCsCxMOV4MXnT8xhvyQdM1p6tyWrv30AQI0pZH2wuTQS0f33jLg==
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=hz4LxQlo;
	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 7D8B6606A31C;
	Sat, 28 Nov 2026 20:16:16 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7D8B6606A31C
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=1795896974; bh=0B4ierBz6j1WrUKOJ+jx92/SrrlKe6ijU73vGifNuF4=;
	h=Date:Subject:To:Cc:References:From:In-Reply-To:From;
	b=hz4LxQlomCFuBKqi9xf2fDrYoH6BKYvOre0W3he90xu0AMxnI3XwZLix2mxy8P3Dj
	 HJ0YTlWq+QBoyIALUNZCx7laHN5OKVRV237WqgTjX5dS1uLEddzC54P3jJ7JwmXnx1
	 Utnj7la+Ns1lXJmjrwm8wnZhS4TCtcHHPpxlvOxjPGLvsEv9fFu5K/zJji+2lGd2L8
	 sobgG/pYZp4vzqk8viLYFWe5ybiXsUS9Ofdt+0+OcZICGvCTdDykolgWOtmf7Qfo6u
	 aZERnQZMFXCXirl8WE3LfF5miwrt6S0eJew4+81Hbr+pz6rL/RtqE2SRxgTwJgb2Ff
	 1AQaOY+sNSZMg==
X-Received: from [0.0.0.0] (unknown [213.228.1.188])
	by rcs.proxad.net (Postfix) with ESMTPSA id 16CC244C026E;
	Sat, 28 Nov 2026 21:16:13 +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: <179546967317.3135.11320901240553136005@kernel.org>