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)
commitc91c1da72b47fc4c5e353cdd9099ba94ae07d2fa
treea49bcde02bf22aee3a925226f9044bd2790628c2
parentee27e330a953595903979ffdb84926843595a9fe
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: 256f79d13c1d ("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