net/mlx5e: Overcome slow response for first IPsec ASO WQE
authorLeon Romanovsky <leonro@nvidia.com>
Thu, 30 Mar 2023 08:02:25 +0000 (11:02 +0300)
committerLeon Romanovsky <leonro@nvidia.com>
Mon, 3 Apr 2023 06:29:47 +0000 (09:29 +0300)
commit76e463f6508b5909887df3c360ca55f1caa3b94a
tree74749865126b8567d3936d4e878037adcdbe75ef
parentd05971a413d3c3dd207c604a6dbfc702070da63e
net/mlx5e: Overcome slow response for first IPsec ASO WQE

First ASO WQE causes to cache miss in hardware, which can't return
result immediately. It causes to the situation where such WQE is polled
earlier than it is needed. Add logic to retry ASO CQ polling operation.

Link: https://lore.kernel.org/r/eb92a758c533ff3f058e0dcb4f8d2324355304ad.1680162300.git.leonro@nvidia.com
Reviewed-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c