Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: ethtool: fix get_ts_stats() documentation

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>

authored by

Russell King (Oracle) and committed by
Jakub Kicinski
ceaceaf7 63ce43f2

+5 -4
+5 -4
include/linux/ethtool.h
··· 926 926 * @get_ts_info: Get the time stamping and PTP hardware clock capabilities. 927 927 * It may be called with RCU, or rtnl or reference on the device. 928 928 * Drivers supporting transmit time stamps in software should set this to 929 - * ethtool_op_get_ts_info(). Drivers must not zero statistics which they 930 - * don't report. The stats structure is initialized to ETHTOOL_STAT_NOT_SET 931 - * indicating driver does not report statistics. 932 - * @get_ts_stats: Query the device hardware timestamping statistics. 929 + * ethtool_op_get_ts_info(). 930 + * @get_ts_stats: Query the device hardware timestamping statistics. Drivers 931 + * must not zero statistics which they don't report. The stats structure 932 + * is initialized to ETHTOOL_STAT_NOT_SET indicating driver does not 933 + * report statistics. 933 934 * @get_module_info: Get the size and type of the eeprom contained within 934 935 * a plug-in module. 935 936 * @get_module_eeprom: Get the eeprom information from the plug-in module