Dear Anton,

Thank you for the improved patch.

Am 29.08.25 um 19:57 schrieb Anton Nadezhdin:
From: Milena Olech <[email protected]>

Add HW timestamping statistics support - through implementing get_ts_stats.
Timestamp statistics include correctly timestamped packets, discarded,
skipped and flushed during PTP release.

Most of the stats are collected per vport, only requests skipped due to
lack of free latch index are collected per Tx queue.

Statistics can be obtained using kernel ethtool since version 6.10
with:
ethtool -I -T <interface>

The output will include:
Statistics:
   tx_pkts: 15
   tx_lost: 0
   tx_err: 0

Signed-off-by: Milena Olech <[email protected]>
Co-developed-by: Anton Nadezhdin <[email protected]>
Signed-off-by: Anton Nadezhdin <[email protected]>
Reviewed-by: Aleksandr Loktionov <[email protected]>
---
Changelog:
v2: Add testing information
v3: Add check for port status to resolve driver crash during statistic
   read when port is down
---
  drivers/net/ethernet/intel/idpf/idpf.h        | 17 ++++++
  .../net/ethernet/intel/idpf/idpf_ethtool.c    | 56 +++++++++++++++++++
  drivers/net/ethernet/intel/idpf/idpf_ptp.c    | 11 +++-
  .../ethernet/intel/idpf/idpf_virtchnl_ptp.c   |  4 ++
  4 files changed, 87 insertions(+), 1 deletion(-)

[…]

Reviewed-by: Paul Menzel <[email protected]>


Kind regards,

Paul

Reply via email to