]> git.baikalelectronics.ru Git - kernel.git/commit
ice: track Tx timestamp stats similar to other Intel drivers
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 27 Jul 2022 23:15:59 +0000 (16:15 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 16 Aug 2022 16:04:38 +0000 (09:04 -0700)
commit1da2c80d89f22f292cab0e387ffe4f96acde3a16
tree20b24385bb244e91968c131516f192a8304f77d3
parentb36ae79f966f3405928b5511bb9ad98cc3517916
ice: track Tx timestamp stats similar to other Intel drivers

Several Intel networking drivers which support PTP track when Tx timestamps
are skipped or when they timeout without a timestamp from hardware. The
conditions which could cause these events are rare, but it can be useful to
know when and how often they occur.

Implement similar statistics for the ice driver, tx_hwtstamp_skipped,
tx_hwtstamp_timeouts, and tx_hwtstamp_flushed.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_ethtool.c
drivers/net/ethernet/intel/ice/ice_ptp.c
drivers/net/ethernet/intel/ice/ice_ptp.h
drivers/net/ethernet/intel/ice/ice_txrx.c