ethtool: add interface to read Tx hardware timestamping statistics
authorRahul Rameshbabu <rrameshbabu@nvidia.com>
Wed, 3 Apr 2024 21:28:39 +0000 (14:28 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Apr 2024 05:24:09 +0000 (22:24 -0700)
commit0e9c127729be19adcdf2f5cc1f3450a4322fdf3a
tree1c6cc703f28c88dd71c830c2d6953a4acad87472
parent4196aee00e2ecc274dd46ee4b20d85ec9145ca70
ethtool: add interface to read Tx hardware timestamping statistics

Multiple network devices that support hardware timestamping appear to have
common behavior with regards to timestamp handling. Implement common Tx
hardware timestamping statistics in a tx_stats struct_group. Common Rx
hardware timestamping statistics can subsequently be implemented in a
rx_stats struct_group for ethtool_ts_stats.

Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Link: https://lore.kernel.org/r/20240403212931.128541-2-rrameshbabu@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/ethtool.yaml
Documentation/networking/ethtool-netlink.rst
include/linux/ethtool.h
include/uapi/linux/ethtool_netlink.h
net/ethtool/tsinfo.c