net/mlx5e: Introduce lost_cqe statistic counter for PTP Tx port timestamping CQ
authorRahul Rameshbabu <rrameshbabu@nvidia.com>
Wed, 3 Apr 2024 21:28:40 +0000 (14:28 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Apr 2024 05:24:09 +0000 (22:24 -0700)
commitadda5401807882f5575364442cd583462fc40ae4
tree2679b3e980f34bed20e54bc439b7eff290bf8347
parent0e9c127729be19adcdf2f5cc1f3450a4322fdf3a
net/mlx5e: Introduce lost_cqe statistic counter for PTP Tx port timestamping CQ

Track the number of times a CQE was expected to not be delivered on PTP Tx
port timestamping CQ. A CQE is expected to not be delivered if a certain
amount of time passes since the corresponding CQE containing the DMA
timestamp information has arrived. Increment the late_cqe counter when such
a CQE does manage to be delivered to the CQ.

Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Link: https://lore.kernel.org/r/20240403212931.128541-3-rrameshbabu@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/device_drivers/ethernet/mellanox/mlx5/counters.rst
drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h