]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Enable striding RQ for Connect-X IPsec capable devices
authorRaed Salem <raeds@nvidia.com>
Sun, 24 Jan 2021 20:40:23 +0000 (22:40 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 12 Feb 2021 02:50:09 +0000 (18:50 -0800)
commit3d8e7dbc7fb664ce4121a92fd4744f6e7c149e61
tree0d785f1faaa42683e40bb3e69d73dac9ac1eecb4
parent94aa2cebf9680c02e8dacf4f23072ada052d73e3
net/mlx5e: Enable striding RQ for Connect-X IPsec capable devices

This limitation was inherited by previous Innova (FPGA) IPsec
implementation, it uses its private set of RQ handlers which does
not support striding rq, for Connect-X this is no longer true.

Fix by keeping this limitation only for Innova IPsec supporting devices,
as otherwise this limitation effectively wrongly blocks striding RQs for
all future Connect-X devices for all flows even if IPsec offload is not
used.

Fixes: 5f4b094d72a3 ("net/mlx5: IPsec: Add HW crypto offload support")
Signed-off-by: Raed Salem <raeds@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.h