Re: [RFC net-next 12/15] net/mlx5e: Add PSP steering in local NIC RX
From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date: 2024-05-13 01:52:02
Jakub Kicinski wrote:
From: Raed Salem <redacted> Introduce decrypt FT, the RX error FT, and the default rules. The PSP (PSP) RX decrypt flow table is pointed by the TTC (Traffic Type Classifier) UDP steering rules. The decrypt flow table has two flow groups. The first flow group keeps the decrypt steering rule programmed always when PSP packet is recognized using the dedicated udp destenation port number 1000, if
typo: destination
packet is decrypted then a PSP marker is set in metadata_regB[30]. The second flow group has a default rule to forward all non-offloaded PSP packet to the TTC UDP default RSS TIR. The RX error flow table is the destination of the decrypt steering rules in the PSP RX decrypt flow table. It has two fixed rule one with single copy action that copies nisp_syndrome to metadata_regB[23:29]. The PSP marker and syndrome is used to filter out non-nisp packet and to return the PSP crypto offload status in Rx flow. The marker is used to identify such packet in driver so the driver could set SKB PSP metadata. The destination of RX error flow table is the TTC UDP default RSS TIR. The second rule will drop packets that failed to be decrypted (like in case illegal SPI or expired SPI is used). Signed-off-by: Raed Salem <redacted> Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>