OSDN Git Service

net/mlx5e: Allow coexistence of CQE compression and HW TS PTP
authorAya Levin <ayal@nvidia.com>
Wed, 20 Jan 2021 14:59:27 +0000 (16:59 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 30 Mar 2021 04:21:54 +0000 (21:21 -0700)
commit960fbfe222a490622cfb3949061b20f83ef46fb0
tree7684a38c8ae3683f66afd8ee786b19bec67ff026
parente5fe49465d463ca6c029869e42e9ba5e895cce02
net/mlx5e: Allow coexistence of CQE compression and HW TS PTP

Update setting HW time-stamp to allow coexistence with CQE compression.
Turn on RX PTP indication and try to reopen the channels. On success,
coexistence with CQE compression is enabled. Otherwise, fall-back to
turning off CQE compression.

Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@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/ptp.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c