OSDN Git Service

net/mlx5e: Drop XFRM state lock when modifying flow steering
authorLeon Romanovsky <leonro@nvidia.com>
Mon, 5 Jun 2023 08:09:51 +0000 (11:09 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 16 Jun 2023 19:59:20 +0000 (12:59 -0700)
commitc75b94255aaa45d9e531df2763baa67020bb6fa9
treee746ab1a4d0fa7351beb5e591718256681d4aedb
parentfef06678931ff67b158d337b581e5cf5ca40a3a3
net/mlx5e: Drop XFRM state lock when modifying flow steering

XFRM state which is changed to be XFRM_STATE_EXPIRED doesn't really
need to hold lock while modifying flow steering rules to drop traffic.

That state can be deleted only and as such mlx5e_ipsec_handle_tx_limit()
work will be canceled anyway and won't run in parallel.

Fixes: b2f7b01d36a9 ("net/mlx5e: Simulate missing IPsec TX limits hardware functionality")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c