Skip to content

Commit c319df1

Browse files
vladimirolteandavem330
authored andcommitted
docs: ethtool: document ETHTOOL_A_STATS_SRC and ETHTOOL_A_PAUSE_STATS_SRC
Two new netlink attributes were added to PAUSE_GET and STATS_GET and their replies. Document them. Signed-off-by: Vladimir Oltean <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 04692c9 commit c319df1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Documentation/networking/ethtool-netlink.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,8 +1092,18 @@ Request contents:
10921092

10931093
===================================== ====== ==========================
10941094
``ETHTOOL_A_PAUSE_HEADER`` nested request header
1095+
``ETHTOOL_A_PAUSE_STATS_SRC`` u32 source of statistics
10951096
===================================== ====== ==========================
10961097

1098+
``ETHTOOL_A_PAUSE_STATS_SRC`` is optional. It takes values from:
1099+
1100+
.. kernel-doc:: include/uapi/linux/ethtool.h
1101+
:identifiers: ethtool_mac_stats_src
1102+
1103+
If absent from the request, stats will be provided with
1104+
an ``ETHTOOL_A_PAUSE_STATS_SRC`` attribute in the response equal to
1105+
``ETHTOOL_MAC_STATS_SRC_AGGREGATE``.
1106+
10971107
Kernel response contents:
10981108

10991109
===================================== ====== ==========================
@@ -1508,6 +1518,7 @@ Request contents:
15081518

15091519
======================================= ====== ==========================
15101520
``ETHTOOL_A_STATS_HEADER`` nested request header
1521+
``ETHTOOL_A_STATS_SRC`` u32 source of statistics
15111522
``ETHTOOL_A_STATS_GROUPS`` bitset requested groups of stats
15121523
======================================= ====== ==========================
15131524

@@ -1516,6 +1527,8 @@ Kernel response contents:
15161527
+-----------------------------------+--------+--------------------------------+
15171528
| ``ETHTOOL_A_STATS_HEADER`` | nested | reply header |
15181529
+-----------------------------------+--------+--------------------------------+
1530+
| ``ETHTOOL_A_STATS_SRC`` | u32 | source of statistics |
1531+
+-----------------------------------+--------+--------------------------------+
15191532
| ``ETHTOOL_A_STATS_GRP`` | nested | one or more group of stats |
15201533
+-+---------------------------------+--------+--------------------------------+
15211534
| | ``ETHTOOL_A_STATS_GRP_ID`` | u32 | group ID - ``ETHTOOL_STATS_*`` |
@@ -1577,6 +1590,11 @@ Low and high bounds are inclusive, for example:
15771590
etherStatsPkts512to1023Octets 512 1023
15781591
============================= ==== ====
15791592

1593+
``ETHTOOL_A_STATS_SRC`` is optional. Similar to ``PAUSE_GET``, it takes values
1594+
from ``enum ethtool_mac_stats_src``. If absent from the request, stats will be
1595+
provided with an ``ETHTOOL_A_STATS_SRC`` attribute in the response equal to
1596+
``ETHTOOL_MAC_STATS_SRC_AGGREGATE``.
1597+
15801598
PHC_VCLOCKS_GET
15811599
===============
15821600

0 commit comments

Comments
 (0)