net/mlx5e: Add PTP-RX statistics
authorAya Levin <ayal@nvidia.com>
Sun, 7 Mar 2021 13:55:04 +0000 (15:55 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 30 Mar 2021 04:21:51 +0000 (21:21 -0700)
commita28359e922c681a23c01e4858175d9e98c5ff88a
tree13fb71238ff1bb9da1ce6425451024083c2b2380
parenta099da8ffcf6d4f6d41719bd41878ff529ab6b55
net/mlx5e: Add PTP-RX statistics

Like PTP-TX, once the PTP-RX is opened, corresponding statistics appear.
Add indication that PTP-RX was ever opened: rx_ptp_opened. If any of the
PTP RX or TX were opened, display the PTP channel's statistics.

Signed-off-by: Aya Levin <ayal@nvidia.com>
Signed-off-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
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h