Skip to content

net/mlx5e: Move IPSec policy check after decryption

Tariq Toukan linux-rdma lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesApplied 8/8

Patches in v1 All 8 applied

#Subject and filesSizeRepliesApplied
1/8net/mlx5e: Add helper function to update IPSec default destinationdrivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c+10 -40 repliesApplied
2/8net/mlx5e: Change the destination of IPSec RX SA miss ruledrivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c+17 -30 repliesApplied
3/8net/mlx5e: Add correct match to check IPSec syndromes for switchdev modedrivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.c drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.h +1 more+41 -70 repliesApplied
4/8net/mlx5e: Move IPSec policy check after decryptiondrivers/net/ethernet/mellanox/mlx5/core/en/fs.h drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.c+145 -560 repliesApplied
5/8net/mlx5e: Skip IPSec RX policy check for crypto offloaddrivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c+56 -250 repliesApplied
6/8net/mlx5e: Add num_reserved_entries param for ipsec_ft_create()drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c+8 -70 repliesApplied
7/8net/mlx5e: Add pass flow group for IPSec RX status tabledrivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c+50 -10 repliesApplied
8/8net/mlx5e: Support RX xfrm state selector's UPSPEC for packet offloaddrivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_stats.c+242 -20 repliesApplied

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchLeon RomanovskyPatrisious Haddad
1/8R-b R-b
2/8R-b R-b
3/8R-b R-b
4/8R-b R-b
5/8R-b R-b
6/8R-b R-b
7/8R-b R-b
8/8R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/8] net/mlx5e: Move IPSec policy check after decryption

Hi,

This series by Jianbo adds IPsec policy check after decryption.

In current mlx5 driver, the policy check is done before decryption for IPSec crypto and packet offload. This series changes that order to make it consistent with the processing in kernel xfrm. Besides, RX state with UPSPEC selector is supported correctly after new steering table is added after decryption and before the policy check.

Regards,
Tariq

Jianbo Liu (8):
net/mlx5e: Add helper function to update IPSec default destination net/mlx5e: Change the destination of IPSec RX SA miss rule net/mlx5e: Add correct match to check IPSec syndromes for switchdev
mode
net/mlx5e: Move IPSec policy check after decryption net/mlx5e: Skip IPSec RX policy check for crypto offload net/mlx5e: Add num_reserved_entries param for ipsec_ft_create() net/mlx5e: Add pass flow group for IPSec RX status table net/mlx5e: Support RX xfrm state selector's UPSPEC for packet offload

 .../net/ethernet/mellanox/mlx5/core/en/fs.h   |   4 +-
 .../mellanox/mlx5/core/en_accel/ipsec.h       |   5 +
 .../mellanox/mlx5/core/en_accel/ipsec_fs.c    | 620 +++++++++++++++---
 .../mellanox/mlx5/core/en_accel/ipsec_stats.c |   1 +
 .../mellanox/mlx5/core/esw/ipsec_fs.c         |  15 +-
 .../mellanox/mlx5/core/esw/ipsec_fs.h         |   5 +
 include/linux/mlx5/eswitch.h                  |   2 +
 7 files changed, 558 insertions(+), 94 deletions(-)

base-commit: 5d6ba5ab8582aa35c1ee98e47af28e6f6772596c

Signature · 1 line
2.45.0