net/mlx5: Use order-0 allocations for EQs
authorTariq Toukan <tariqt@nvidia.com>
Thu, 11 Mar 2021 07:09:15 +0000 (23:09 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 12 Mar 2021 21:07:46 +0000 (13:07 -0800)
commit26bf30902c10473ba38f220d3401a61c56d8db3b
tree4a7d3e53dc4b5bb96aec8670e21011b9b0b700e0
parentc3e666f1ada9cbfbe5465f122f9a2d63ddfd25ed
net/mlx5: Use order-0 allocations for EQs

Currently we are allocating high-order page for EQs. In case of
fragmented system, VF hot remove/add in VMs for example, there isn't
enough contiguous memory for EQs allocation, which results in crashing
of the VM.
Therefore, use order-0 fragments for the EQ allocations instead.

Performance tests:
ConnectX-5 100Gbps, CPU: Intel(R) Xeon(R) CPU E5-2697 v3 @ 2.60GHz
Performance tests show no sensible degradation.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/health.c
drivers/net/ethernet/mellanox/mlx5/core/eq.c
drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h
drivers/net/ethernet/mellanox/mlx5/core/wq.c
include/linux/mlx5/driver.h