]> 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)
commit20342eb5bfe89e5263be6ec83b312f8a7ce5bfca
treea49bcde02bf22aee3a925226f9044bd2790628c2
parentccd803e5232edba7a538b4d81e05917b03f4f7a4
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: 9b416ea6f4d2 ("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