]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix mutual exclusion between CQE compression and HW TS
authorAya Levin <ayal@nvidia.com>
Thu, 15 Jul 2021 07:53:28 +0000 (10:53 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 7 Sep 2021 21:16:58 +0000 (14:16 -0700)
commit5907bb1dce7aaacdfd28364eb54e8c155a7c3855
treea49bcde02bf22aee3a925226f9044bd2790628c2
parent7cf16c9e9c619ace3e51ef7307583b2f7549dcff
net/mlx5e: Fix mutual exclusion between CQE compression and HW TS

Some profiles of the driver don't support a dedicated PTP-RQ, hence can't
support HW TS and CQE compression simultaneously. When HW TS is enabled
the COE compression is disabled, and should be restored when the HW TS
is turned off. Add rx_filter as an input to modifying CQE compression to
enforce this restriction.

Fixes: a95e6df84a7e ("net/mlx5e: Fix HW TS with CQE compression according to profile")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c