diff options
author | Vadim Fedorenko <[email protected]> | 2024-05-29 21:08:14 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-06-01 15:11:09 -0700 |
commit | 89e281ebff72e6d37dce2df0e142b2909dafb267 (patch) | |
tree | 31b407bba1aa4e9dded68a96f35bb402ce715a58 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7679935b8bdf8d2bc298b04ed579d1ed78e81907 (diff) |
ethtool: init tsinfo stats if requested
Statistic values should be set to ETHTOOL_STAT_NOT_SET even if the
device doesn't support statistics. Otherwise zeros will be returned as
if they are proper values:
host# ethtool -I -T lo
Time stamping parameters for lo:
Capabilities:
software-transmit
software-receive
software-system-clock
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none
Statistics:
tx_pkts: 0
tx_lost: 0
tx_err: 0
Fixes: 0e9c127729be ("ethtool: add interface to read Tx hardware timestamping statistics")
Suggested-by: Jakub Kicinski <[email protected]>
Signed-off-by: Vadim Fedorenko <[email protected]>
Reviewed-by: Rahul Rameshbabu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions