]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: ethtool: fix get_ts_stats() documentation
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 11 Apr 2025 22:04:19 +0000 (23:04 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 14 Apr 2025 23:43:27 +0000 (16:43 -0700)
Commit 0e9c127729be ("ethtool: add interface to read Tx hardware
timestamping statistics") added documentation for timestamping
statistics, but added the detailed explanation for this method to
the get_ts_info() rather than get_ts_stats(). Move it to the correct
entry.

Cc: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1u3MTz-000Crx-IW@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/ethtool.h

index 8210ece94fa6b637b875889d54a969420b373a4e..013d258586420556529a581b3a2c7751f24c37e5 100644 (file)
@@ -926,10 +926,11 @@ struct kernel_ethtool_ts_info {
  * @get_ts_info: Get the time stamping and PTP hardware clock capabilities.
  *     It may be called with RCU, or rtnl or reference on the device.
  *     Drivers supporting transmit time stamps in software should set this to
- *     ethtool_op_get_ts_info(). Drivers must not zero statistics which they
- *     don't report. The stats structure is initialized to ETHTOOL_STAT_NOT_SET
- *     indicating driver does not report statistics.
- * @get_ts_stats: Query the device hardware timestamping statistics.
+ *     ethtool_op_get_ts_info().
+ * @get_ts_stats: Query the device hardware timestamping statistics. Drivers
+ *     must not zero statistics which they don't report. The stats structure
+ *     is initialized to ETHTOOL_STAT_NOT_SET indicating driver does not
+ *     report statistics.
  * @get_module_info: Get the size and type of the eeprom contained within
  *     a plug-in module.
  * @get_module_eeprom: Get the eeprom information from the plug-in module