From: Cosmin Ratiu <cratiu@nvidia.com>
To: "andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>,
"davem@davemloft.net" <davem@davemloft.net>,
Tariq Toukan <tariqt@nvidia.com>,
"sd@queasysnail.net" <sd@queasysnail.net>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"edumazet@google.com" <edumazet@google.com>,
"daniel.zahka@gmail.com" <daniel.zahka@gmail.com>,
"kuba@kernel.org" <kuba@kernel.org>
Cc: "sdf.kernel@gmail.com" <sdf.kernel@gmail.com>,
"doruk@0sec.ai" <doruk@0sec.ai>,
Boris Pismenny <borisp@nvidia.com>,
"shuah@kernel.org" <shuah@kernel.org>,
"linux-kselftest@vger.kernel.org"
<linux-kselftest@vger.kernel.org>,
Jianbo Liu <jianbol@nvidia.com>,
"leon@kernel.org" <leon@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Rahul Rameshbabu <rrameshbabu@nvidia.com>,
"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
Raed Salem <raeds@nvidia.com>,
"skhan@linuxfoundation.org" <skhan@linuxfoundation.org>,
Chris Mi <cmi@nvidia.com>, Carolina Jubran <cjubran@nvidia.com>,
"kees@kernel.org" <kees@kernel.org>,
Alex Lazar <alazar@nvidia.com>,
Dragos Tatulea <dtatulea@nvidia.com>,
Mark Bloch <mbloch@nvidia.com>,
"sdf@fomichev.me" <sdf@fomichev.me>,
Saeed Mahameed <saeedm@nvidia.com>,
"horms@kernel.org" <horms@kernel.org>,
"aleksandr.loktionov@intel.com" <aleksandr.loktionov@intel.com>,
Gal Pressman <gal@nvidia.com>, Lama Kayal <lkayal@nvidia.com>,
"Jacob.e.keller@intel.com" <Jacob.e.keller@intel.com>,
Patrisious Haddad <phaddad@nvidia.com>
Subject: Re: [PATCH net-next V2 09/13] net/mlx5e: psp: Add an rx_decap steering table
Date: Mon, 10 Aug 2026 11:48:13 +0000 [thread overview]
Message-ID: <7a66866c0b66271924a07701911c2ec05f96e244.camel@nvidia.com> (raw)
In-Reply-To: <3a936f25-95b1-4b85-9d8d-d5ef9949b7d6@gmail.com>
On Tue, 2026-08-04 at 13:19 -0400, Daniel Zahka wrote:
>
>
> On 8/4/26 4:35 AM, Tariq Toukan wrote:
> > From: Cosmin Ratiu <cratiu@nvidia.com>
> >
> > Introduce an additional steering table for PSP transport mode
> > decapsulation, containing:
> > - one rule per supported PSP version which does:
> > - transport mode decap (removes UDP+PSP headers and PSP trailer)
> > - recomputes iph->tot_len
> > - recomputes IP checksum
> > - reparses packet headers
> > - copy SPI into reg_b (which ends up as cqe.ft_metadata)
> > - set a decap marker and the PSP version in the flow_tag, so the
> > RX
> > handler can make sense of the packet
> > - default drop rule for unsupported PSP versions (per PSP spec).
> >
> > Packets are forwarded to the previously added rx table, where:
> > - one rule forwards UDP traffic to the UDP default destination.
> > - default rule forwards traffic to the TTC table.
> >
> > The reason is to avoid steering loops. If packets were to be
> > injected
> > into the TTC directly after rx_decap, it may be possible to create
> > a
> > steering loop with RX packets of the form IP|UDP|PSP|UDP|PSP...
> > The rx flow table guarantees that packets go through PSP steering
> > at
> > most once.
> >
> > The steering mode is saved in a new field 'fs.decap_enabled'.
> > Updating the mode is done through accel_psp_fs_rx_reconfigure(),
> > which
> > creates the decap steering table if needed and possible. It then
> > uses an
> > atomic rule update to redirect traffic to the new table.
> > This is now invoked with decap_wanted == false.
> > The intention is for failures creating the new table to not block
> > feature
> > reconfig. A message is logged when table creation failed and PSP
> > for HW
> > GRO will not work in that case.
> > Nothing happens on HW without the ability to decapsulate PSP
> > transport.
> >
> > An upcoming patch will add dynamic reconfiguration of PSP steering
> > based
> > on HW GRO.
> >
> > Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
> > Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
> > Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
> Cosmin, can you TAL at
> https://lore.kernel.org/all/0d72c5b2-6d4c-40d4-8cbe-8cd95d61a230@gmail.com/
>
> and let me know if this is an issue or not? I see the patch looks the
> same, but wasn't sure if you didn't see my message or if it is a
> false
> positive.
Apologies for this, I was on vacation and couldn't reply. And I think I
misled Tariq into thinking this wasn't a real issue, so he posted the
series again (Apologies, Tariq). As noted in V1, this will be addressed
in V3.
Cosmin.
next prev parent reply other threads:[~2026-08-10 11:48 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 8:35 [PATCH net-next V2 00/13] net/mlx5e: Add support for HW-GRO to PSP Tariq Toukan
2026-08-04 8:35 ` [PATCH net-next V2 01/13] net/mlx5e: Generalize TC <-> IPsec mutual exclusion Tariq Toukan
2026-08-04 8:35 ` [PATCH net-next V2 02/13] net/mlx5e: ipsec: Block TC offload when IPsec is enabled Tariq Toukan
2026-08-04 8:35 ` [PATCH net-next V2 03/13] net/mlx5e: psp: Block TC offload when PSP " Tariq Toukan
2026-08-04 8:35 ` [PATCH net-next V2 04/13] net/mlx5e: macsec: Block TC offload when MACsec " Tariq Toukan
2026-08-04 8:35 ` [PATCH net-next V2 05/13] net/mlx5e: psp: Move RX marker from ft_metadata to flow_tag Tariq Toukan
2026-08-04 8:35 ` [PATCH net-next V2 06/13] net/mlx5e: ipsec: " Tariq Toukan
2026-08-04 8:35 ` [PATCH net-next V2 07/13] net/mlx5e: macsec: " Tariq Toukan
2026-08-04 8:35 ` [PATCH net-next V2 08/13] net/mlx5e: psp: Handle HW-decapsulated RX PSP packets Tariq Toukan
2026-08-04 17:34 ` Daniel Zahka
2026-08-10 11:46 ` Cosmin Ratiu
2026-08-04 8:35 ` [PATCH net-next V2 09/13] net/mlx5e: psp: Add an rx_decap steering table Tariq Toukan
2026-08-04 17:19 ` Daniel Zahka
2026-08-10 11:48 ` Cosmin Ratiu [this message]
2026-08-04 8:35 ` [PATCH net-next V2 10/13] net/mlx5e: shampo: Flush session on PSP mismatch Tariq Toukan
2026-08-04 8:35 ` [PATCH net-next V2 11/13] net/mlx5e: psp: Dynamically reconfigure based on SHAMPO mode Tariq Toukan
2026-08-04 8:35 ` [PATCH net-next V2 12/13] selftests: drv-net: psp: Fix responder parsing Tariq Toukan
2026-08-08 0:58 ` Jakub Kicinski
2026-08-10 11:42 ` Cosmin Ratiu
2026-08-10 20:33 ` Jakub Kicinski
2026-08-04 8:35 ` [PATCH net-next V2 13/13] selftests: drv-net: psp: Add a test for PSP with HW-GRO Tariq Toukan
2026-08-04 18:05 ` Daniel Zahka
2026-08-10 11:52 ` Cosmin Ratiu
2026-08-08 1:00 ` Jakub Kicinski
2026-08-10 14:30 ` Cosmin Ratiu
2026-08-10 20:31 ` Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7a66866c0b66271924a07701911c2ec05f96e244.camel@nvidia.com \
--to=cratiu@nvidia.com \
--cc=Jacob.e.keller@intel.com \
--cc=alazar@nvidia.com \
--cc=aleksandr.loktionov@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=borisp@nvidia.com \
--cc=cjubran@nvidia.com \
--cc=cmi@nvidia.com \
--cc=daniel.zahka@gmail.com \
--cc=davem@davemloft.net \
--cc=doruk@0sec.ai \
--cc=dtatulea@nvidia.com \
--cc=edumazet@google.com \
--cc=gal@nvidia.com \
--cc=horms@kernel.org \
--cc=jianbol@nvidia.com \
--cc=kees@kernel.org \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=lkayal@nvidia.com \
--cc=mbloch@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=phaddad@nvidia.com \
--cc=raeds@nvidia.com \
--cc=rrameshbabu@nvidia.com \
--cc=saeedm@nvidia.com \
--cc=sd@queasysnail.net \
--cc=sdf.kernel@gmail.com \
--cc=sdf@fomichev.me \
--cc=shuah@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=tariqt@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox