]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Enable XDP for Connect-X IPsec capable devices
authorRaed Salem <raeds@nvidia.com>
Mon, 25 Jan 2021 07:58:22 +0000 (09:58 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 12 Feb 2021 02:50:10 +0000 (18:50 -0800)
commit8fab33f1078eb3caff00229a69fd842f3316bf8f
tree684339857c460ee509c3f578f62c5bb0e364a41c
parent90bed923748054e04be5720ea0279996e03560c8
net/mlx5e: Enable XDP 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 XDP, 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 XDP for all
future Connect-X devices for all flows even if IPsec offload is not
used.

Fixes: dcf7b91e46d3 ("net/mlx5: IPsec: Add HW crypto offload support")
Signed-off-by: Raed Salem <raeds@nvidia.com>
Reviewed-by: Alaa Hleihel <alaa@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