aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en.h
diff options
context:
space:
mode:
authorAya Levin <ayal@nvidia.com>2021-01-20 16:59:27 +0200
committerSaeed Mahameed <saeedm@nvidia.com>2021-03-29 21:21:54 -0700
commit960fbfe222a490622cfb3949061b20f83ef46fb0 (patch)
tree7684a38c8ae3683f66afd8ee786b19bec67ff026 /drivers/net/ethernet/mellanox/mlx5/core/en.h
parentnet/mlx5e: Add PTP Flow Steering support (diff)
downloadlinux-dev-960fbfe222a490622cfb3949061b20f83ef46fb0.tar.xz
linux-dev-960fbfe222a490622cfb3949061b20f83ef46fb0.zip
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h
index f31b5ccc27d0..2ad12ee9d100 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h
@@ -269,6 +269,7 @@ struct mlx5e_params {
struct mlx5e_xsk *xsk;
unsigned int sw_mtu;
int hard_mtu;
+ bool ptp_rx;
};
enum {