]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5e: Update TX ESN context for IPSec hardware offload
authorJianbo Liu <jianbol@nvidia.com>
Thu, 19 Dec 2024 12:37:30 +0000 (14:37 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 7 Jan 2025 12:12:11 +0000 (13:12 +0100)
commit7082a6dc84ebba9dbdf65727b5bc4af92a2d31d3
treebfd8d40d3e90b5e6604319db906360d8c8e48bf4
parent373b79af3a209e25e011c5980cb59ed3252fa2f0
net/mlx5e: Update TX ESN context for IPSec hardware offload

ESN context must be synced between software and hardware for both RX
and TX. As the call to xfrm_dev_state_advance_esn() is added for TX,
this patch add the missing logic for TX. So the update is also checked
on every packet sent, to see if need to trigger ESN update worker.

Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c