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

net: sysfs: document /sys/class/net/statistics/*

Document the network device statistics counter that are exposed as sysfs
attributes.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Florian Fainelli and committed by
David S. Miller
6044f970 1a02ef76

+201
+201
Documentation/ABI/testing/sysfs-class-net-statistics
··· 1 + What: /sys/class/<iface>/statistics/collisions 2 + Date: April 2005 3 + KernelVersion: 2.6.12 4 + Contact: netdev@vger.kernel.org 5 + Description: 6 + Indicates the number of collisions seen by this network device. 7 + This value might not be relevant with all MAC layers. 8 + 9 + What: /sys/class/<iface>/statistics/multicast 10 + Date: April 2005 11 + KernelVersion: 2.6.12 12 + Contact: netdev@vger.kernel.org 13 + Description: 14 + Indicates the number of multicast packets received by this 15 + network device. 16 + 17 + What: /sys/class/<iface>/statistics/rx_bytes 18 + Date: April 2005 19 + KernelVersion: 2.6.12 20 + Contact: netdev@vger.kernel.org 21 + Description: 22 + Indicates the number of bytes received by this network device. 23 + See the network driver for the exact meaning of when this 24 + value is incremented. 25 + 26 + What: /sys/class/<iface>/statistics/rx_compressed 27 + Date: April 2005 28 + KernelVersion: 2.6.12 29 + Contact: netdev@vger.kernel.org 30 + Description: 31 + Indicates the number of compressed packets received by this 32 + network device. This value might only be relevant for interfaces 33 + that support packet compression (e.g: PPP). 34 + 35 + What: /sys/class/<iface>/statistics/rx_crc_errors 36 + Date: April 2005 37 + KernelVersion: 2.6.12 38 + Contact: netdev@vger.kernel.org 39 + Description: 40 + Indicates the number of packets received with a CRC (FCS) error 41 + by this network device. Note that the specific meaning might 42 + depend on the MAC layer used by the interface. 43 + 44 + What: /sys/class/<iface>/statistics/rx_dropped 45 + Date: April 2005 46 + KernelVersion: 2.6.12 47 + Contact: netdev@vger.kernel.org 48 + Description: 49 + Indicates the number of packets received by the network device 50 + but dropped, that are not forwarded to the upper layers for 51 + packet processing. See the network driver for the exact 52 + meaning of this value. 53 + 54 + What: /sys/class/<iface>/statistics/rx_fifo_errors 55 + Date: April 2005 56 + KernelVersion: 2.6.12 57 + Contact: netdev@vger.kernel.org 58 + Description: 59 + Indicates the number of receive FIFO errors seen by this 60 + network device. See the network driver for the exact 61 + meaning of this value. 62 + 63 + What: /sys/class/<iface>/statistics/rx_frame_errors 64 + Date: April 2005 65 + KernelVersion: 2.6.12 66 + Contact: netdev@vger.kernel.org 67 + Description: 68 + Indicates the number of received frames with error, such as 69 + alignment errors. Note that the specific meaning depends on 70 + on the MAC layer protocol used. See the network driver for 71 + the exact meaning of this value. 72 + 73 + What: /sys/class/<iface>/statistics/rx_length_errors 74 + Date: April 2005 75 + KernelVersion: 2.6.12 76 + Contact: netdev@vger.kernel.org 77 + Description: 78 + Indicates the number of received error packet with a length 79 + error, oversized or undersized. See the network driver for the 80 + exact meaning of this value. 81 + 82 + What: /sys/class/<iface>/statistics/rx_missed_errors 83 + Date: April 2005 84 + KernelVersion: 2.6.12 85 + Contact: netdev@vger.kernel.org 86 + Description: 87 + Indicates the number of received packets that have been missed 88 + due to lack of capacity in the receive side. See the network 89 + driver for the exact meaning of this value. 90 + 91 + What: /sys/class/<iface>/statistics/rx_over_errors 92 + Date: April 2005 93 + KernelVersion: 2.6.12 94 + Contact: netdev@vger.kernel.org 95 + Description: 96 + Indicates the number of received packets that are oversized 97 + compared to what the network device is configured to accept 98 + (e.g: larger than MTU). See the network driver for the exact 99 + meaning of this value. 100 + 101 + What: /sys/class/<iface>/statistics/rx_packets 102 + Date: April 2005 103 + KernelVersion: 2.6.12 104 + Contact: netdev@vger.kernel.org 105 + Description: 106 + Indicates the total number of good packets received by this 107 + network device. 108 + 109 + What: /sys/class/<iface>/statistics/tx_aborted_errors 110 + Date: April 2005 111 + KernelVersion: 2.6.12 112 + Contact: netdev@vger.kernel.org 113 + Description: 114 + Indicates the number of packets that have been aborted 115 + during transmission by a network device (e.g: because of 116 + a medium collision). See the network driver for the exact 117 + meaning of this value. 118 + 119 + What: /sys/class/<iface>/statistics/tx_bytes 120 + Date: April 2005 121 + KernelVersion: 2.6.12 122 + Contact: netdev@vger.kernel.org 123 + Description: 124 + Indicates the number of bytes transmitted by a network 125 + device. See the network driver for the exact meaning of this 126 + value, in particular whether this accounts for all successfully 127 + transmitted packets or all packets that have been queued for 128 + transmission. 129 + 130 + What: /sys/class/<iface>/statistics/tx_carrier_errors 131 + Date: April 2005 132 + KernelVersion: 2.6.12 133 + Contact: netdev@vger.kernel.org 134 + Description: 135 + Indicates the number of packets that could not be transmitted 136 + because of carrier errors (e.g: physical link down). See the 137 + network driver for the exact meaning of this value. 138 + 139 + What: /sys/class/<iface>/statistics/tx_compressed 140 + Date: April 2005 141 + KernelVersion: 2.6.12 142 + Contact: netdev@vger.kernel.org 143 + Description: 144 + Indicates the number of transmitted compressed packets. Note 145 + this might only be relevant for devices that support 146 + compression (e.g: PPP). 147 + 148 + What: /sys/class/<iface>/statistics/tx_dropped 149 + Date: April 2005 150 + KernelVersion: 2.6.12 151 + Contact: netdev@vger.kernel.org 152 + Description: 153 + Indicates the number of packets dropped during transmission. 154 + See the driver for the exact reasons as to why the packets were 155 + dropped. 156 + 157 + What: /sys/class/<iface>/statistics/tx_errors 158 + Date: April 2005 159 + KernelVersion: 2.6.12 160 + Contact: netdev@vger.kernel.org 161 + Description: 162 + Indicates the number of packets in error during transmission by 163 + a network device. See the driver for the exact reasons as to 164 + why the packets were dropped. 165 + 166 + What: /sys/class/<iface>/statistics/tx_fifo_errors 167 + Date: April 2005 168 + KernelVersion: 2.6.12 169 + Contact: netdev@vger.kernel.org 170 + Description: 171 + Indicates the number of packets having caused a transmit 172 + FIFO error. See the driver for the exact reasons as to why the 173 + packets were dropped. 174 + 175 + What: /sys/class/<iface>/statistics/tx_heartbeat_errors 176 + Date: April 2005 177 + KernelVersion: 2.6.12 178 + Contact: netdev@vger.kernel.org 179 + Description: 180 + Indicates the number of packets transmitted that have been 181 + reported as heartbeat errors. See the driver for the exact 182 + reasons as to why the packets were dropped. 183 + 184 + What: /sys/class/<iface>/statistics/tx_packets 185 + Date: April 2005 186 + KernelVersion: 2.6.12 187 + Contact: netdev@vger.kernel.org 188 + Description: 189 + Indicates the number of packets transmitted by a network 190 + device. See the driver for whether this reports the number of all 191 + attempted or successful transmissions. 192 + 193 + What: /sys/class/<iface>/statistics/tx_window_errors 194 + Date: April 2005 195 + KernelVersion: 2.6.12 196 + Contact: netdev@vger.kernel.org 197 + Description: 198 + Indicates the number of packets not successfully transmitted 199 + due to a window collision. The specific meaning depends on the 200 + MAC layer used. On Ethernet this is usually used to report 201 + late collisions errors.