ethtool: update tsinfo statistics attribute docs with correct type
authorRahul Rameshbabu <rrameshbabu@nvidia.com>
Tue, 9 Apr 2024 23:25:16 +0000 (16:25 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 11 Apr 2024 02:30:01 +0000 (19:30 -0700)
nla_put_uint can either write a u32 or u64 netlink attribute value. The
size depends on whether the value can be represented with a u32 or requires
a u64. Use a uint annotation in various documentation to represent this.

Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Link: https://lore.kernel.org/r/20240409232520.237613-2-rrameshbabu@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/ethtool-netlink.rst
include/uapi/linux/ethtool_netlink.h

index 5dc42f7ce4291377c8ff1ca2847539800250f2ff..4e63d3708ed944e40d857643cd6668c559e6bb05 100644 (file)
@@ -1254,9 +1254,9 @@ would be empty (no bit set).
 Additional hardware timestamping statistics response contents:
 
   =====================================  ======  ===================================
-  ``ETHTOOL_A_TS_STAT_TX_PKTS``          u64     Packets with Tx HW timestamps
-  ``ETHTOOL_A_TS_STAT_TX_LOST``          u64     Tx HW timestamp not arrived count
-  ``ETHTOOL_A_TS_STAT_TX_ERR``           u64     HW error request Tx timestamp count
+  ``ETHTOOL_A_TS_STAT_TX_PKTS``          uint    Packets with Tx HW timestamps
+  ``ETHTOOL_A_TS_STAT_TX_LOST``          uint    Tx HW timestamp not arrived count
+  ``ETHTOOL_A_TS_STAT_TX_ERR``           uint    HW error request Tx timestamp count
   =====================================  ======  ===================================
 
 CABLE_TEST
index 23e225f00fb09a201b9ade139248cf8c969b4cb6..b4f0d233d0488410267cf65c7478ab753813544f 100644 (file)
@@ -488,9 +488,9 @@ enum {
 enum {
        ETHTOOL_A_TS_STAT_UNSPEC,
 
-       ETHTOOL_A_TS_STAT_TX_PKTS,                      /* u64 */
-       ETHTOOL_A_TS_STAT_TX_LOST,                      /* u64 */
-       ETHTOOL_A_TS_STAT_TX_ERR,                       /* u64 */
+       ETHTOOL_A_TS_STAT_TX_PKTS,                      /* uint */
+       ETHTOOL_A_TS_STAT_TX_LOST,                      /* uint */
+       ETHTOOL_A_TS_STAT_TX_ERR,                       /* uint */
 
        /* add new constants above here */
        __ETHTOOL_A_TS_STAT_CNT,