Lines Matching +full:multi +full:- +full:protocol
1 .. SPDX-License-Identifier: GPL-2.0
14 - standard interface statistics based on
16 - protocol-specific statistics; and
17 - driver-defined statistics available via ethtool.
20 -----------------------------
25 $ ip -s -s link show dev ens4u1u1
38 Note that `-s` has been specified twice to see all members of
40 If `-s` is specified once the detailed errors won't be shown.
42 `ip` supports JSON formatting via the `-j` option.
51 see `Documentation/userspace-api/netlink/intro-specs.rst`.
53 Protocol-specific statistics
54 ----------------------------
56 Protocol-specific statistics are exposed via relevant interfaces,
62 Ethtool exposes common low-level statistics.
64 by the device, not the driver (as opposed to driver-defined stats
67 switches (e.g. legacy SR-IOV or multi-host NICs) the events counted
79 $ ethtool --include-statistics -a eth0
89 functionality are exposed via ``ethtool -S $ifc`` by specifying
90 the ``--groups`` parameter::
92 $ ethtool -S eth0 --groups eth-phy eth-mac eth-ctrl rmon
94 eth-phy-SymbolErrorDuringCarrier: 0
95 eth-mac-FramesTransmittedOK: 1
96 eth-mac-FrameTooLongErrors: 1
97 eth-ctrl-MACControlFramesTransmitted: 1
98 eth-ctrl-MACControlFramesReceived: 0
99 eth-ctrl-UnsupportedOpcodesReceived: 1
100 rmon-etherStatsUndersizePkts: 1
101 rmon-etherStatsJabbers: 0
102 rmon-rx-etherStatsPkts64Octets: 1
103 rmon-rx-etherStatsPkts65to127Octets: 0
104 rmon-rx-etherStatsPkts128to255Octets: 0
105 rmon-tx-etherStatsPkts64Octets: 2
106 rmon-tx-etherStatsPkts65to127Octets: 3
107 rmon-tx-etherStatsPkts128to255Octets: 0
109 Driver-defined statistics
110 -------------------------
112 Driver-defined ethtool statistics can be dumped using `ethtool -S $ifc`, e.g.::
114 $ ethtool -S ens4u1u1
123 ------
133 -----
146 `Documentation/ABI/testing/sysfs-class-net-statistics`.
150 -------
166 -------
170 statistics for which other APIs did not exist, like per-device-queue
171 statistics, or standard-based statistics (e.g. RFC 2863).
178 ethtool-netlink
179 ---------------
183 Protocol-related statistics can be requested in get commands by setting
187 - `ETHTOOL_MSG_PAUSE_GET`
188 - `ETHTOOL_MSG_FEC_GET`
189 - `ETHTOOL_MSG_MM_GET`
192 -------
199 .. kernel-doc:: include/uapi/linux/if_link.h
221 Retrieving ethtool statistics is a multi-syscall process, drivers are advised
228 Kernel-internal data structures
229 -------------------------------
235 - ethtool_pause_stats()
236 - ethtool_fec_stats()