]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Default to Striding RQ when not conflicting with CQE compression
authorTariq Toukan <tariqt@nvidia.com>
Tue, 11 Jan 2022 16:28:12 +0000 (18:28 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 17 Feb 2022 07:55:14 +0000 (23:55 -0800)
commit82f4ed1bba715230ce381266fa76b154544ac26b
tree0d8f47ea84a2d31bd0a5259e0387b0cbc6a15a94
parentb4b3333c49942c88335338fb2b2b5c715fb7dc93
net/mlx5e: Default to Striding RQ when not conflicting with CQE compression

CQE compression is turned on by default on slow pci systems to help
reduce the load on pci.
In this case, Striding RQ was turned off as CQEs of packets that span
several strides were not compressed, significantly reducing the compression
effectiveness.
This issue does not exist when using the newer mini_cqe format "stride_index".
Hence, allow defaulting to Striding RQ in this case.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/params.c