Skip to content

Improve IPsec limits, ESN and replay window in mlx5

Leon Romanovsky netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10net/mlx5e: Factor out IPsec ASO update functiondrivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c+14 -130 replies
2/10net/mlx5e: Prevent zero IPsec soft/hard limitsdrivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c+5 -00 replies
3/10net/mlx5e: Add SW implementation to support IPsec 64 bit soft and hard limitsdrivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c+227 -230 replies
4/10net/mlx5e: Overcome slow response for first IPsec ASO WQEdrivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c+7 -10 replies
5/10xfrm: don't require advance ESN callback for packet offloadnet/xfrm/xfrm_device.c+1 -11 reply
6/10net/mlx5e: Remove ESN callbacks if it is not supporteddrivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c+38 -170 replies
7/10net/mlx5e: Set IPsec replay sequence numbersdrivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c+60 -240 replies
8/10net/mlx5e: Reduce contention in IPsec workqueuedrivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c+2 -20 replies
9/10net/mlx5e: Generalize IPsec work structsdrivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c+66 -480 replies
10/10net/mlx5e: Simulate missing IPsec TX limits hardware functionalitydrivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c+99 -50 replies

Reviews trailers per patch

8 of 10 patches have a Reviewed-by or Acked-by.

PatchRaed SalemSteffen Klassert
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b A-b
6/10R-b
7/10R-b
8/10
9/10R-b
10/10

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 00/10] Improve IPsec limits, ESN and replay window in mlx5

From: Leon Romanovsky <[email protected]>

Hi,

This series overcomes existing hardware limitations in Mellanox ConnectX devices around handling IPsec soft and hard limits.

In addition, the ESN logic is tied and added an interface to configure replay window sequence numbers through existing iproute2 interface.

ip xfrm state ... [ replay-seq SEQ ] [ replay-oseq SEQ ]
[ replay-seq-hi SEQ ] [ replay-oseq-hi SEQ ]

Thanks

Leon Romanovsky (10):
net/mlx5e: Factor out IPsec ASO update function
net/mlx5e: Prevent zero IPsec soft/hard limits
net/mlx5e: Add SW implementation to support IPsec 64 bit soft and hard
limits
net/mlx5e: Overcome slow response for first IPsec ASO WQE
xfrm: don't require advance ESN callback for packet offload net/mlx5e: Remove ESN callbacks if it is not supported net/mlx5e: Set IPsec replay sequence numbers
net/mlx5e: Reduce contention in IPsec workqueue
net/mlx5e: Generalize IPsec work structs
net/mlx5e: Simulate missing IPsec TX limits hardware functionality

 .../mellanox/mlx5/core/en_accel/ipsec.c       | 329 +++++++++++++++---
 .../mellanox/mlx5/core/en_accel/ipsec.h       |  47 ++-
 .../mellanox/mlx5/core/en_accel/ipsec_fs.c    |  31 +-
 .../mlx5/core/en_accel/ipsec_offload.c        | 198 ++++++++---
 net/xfrm/xfrm_device.c                        |   2 +-
 5 files changed, 496 insertions(+), 111 deletions(-)
Signature · 1 line
2.39.2