2022-05-18 23:43:46 +00:00
|
|
|
Networking
|
|
|
|
==========
|
2017-05-12 12:14:02 +00:00
|
|
|
|
2022-03-30 04:25:05 +00:00
|
|
|
Refer to :ref:`netdev-FAQ` for a guide on netdev development process specifics.
|
|
|
|
|
2017-05-12 12:14:02 +00:00
|
|
|
Contents:
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
|
2018-05-02 11:01:36 +00:00
|
|
|
af_xdp
|
2020-02-24 05:27:50 +00:00
|
|
|
bareudp
|
2017-07-12 11:14:48 +00:00
|
|
|
batman-adv
|
2018-01-24 10:19:11 +00:00
|
|
|
can
|
2018-04-11 16:06:42 +00:00
|
|
|
can_ucan_protocol
|
2019-05-22 01:57:12 +00:00
|
|
|
device_drivers/index
|
2019-04-12 11:55:18 +00:00
|
|
|
dsa/index
|
2020-01-09 22:46:10 +00:00
|
|
|
devlink/index
|
2020-04-27 22:01:16 +00:00
|
|
|
caif/index
|
2019-12-27 14:55:18 +00:00
|
|
|
ethtool-netlink
|
2019-02-27 19:59:13 +00:00
|
|
|
ieee802154
|
2018-10-08 09:48:36 +00:00
|
|
|
j1939
|
2017-05-12 12:14:02 +00:00
|
|
|
kapi
|
2018-01-08 06:50:17 +00:00
|
|
|
msg_zerocopy
|
2018-07-11 21:42:49 +00:00
|
|
|
failover
|
2020-04-09 21:21:58 +00:00
|
|
|
net_dim
|
2018-07-11 21:42:49 +00:00
|
|
|
net_failover
|
2020-05-01 14:44:58 +00:00
|
|
|
page_pool
|
2019-01-26 10:25:37 +00:00
|
|
|
phy
|
2019-02-22 11:31:46 +00:00
|
|
|
sfp-phylink
|
2018-07-18 03:27:35 +00:00
|
|
|
alias
|
2018-07-18 03:27:36 +00:00
|
|
|
bridge
|
2018-11-10 21:38:12 +00:00
|
|
|
snmp_counter
|
2019-01-05 23:29:41 +00:00
|
|
|
checksum-offloads
|
|
|
|
segmentation-offloads
|
2019-01-18 20:38:32 +00:00
|
|
|
scaling
|
2019-05-22 01:57:13 +00:00
|
|
|
tls
|
2019-05-22 01:57:14 +00:00
|
|
|
tls-offload
|
2019-11-22 07:43:06 +00:00
|
|
|
nfc
|
2020-02-06 15:17:22 +00:00
|
|
|
6lowpan
|
2020-04-27 22:01:17 +00:00
|
|
|
6pack
|
2020-04-27 22:01:19 +00:00
|
|
|
arcnet-hardware
|
2020-04-27 22:01:20 +00:00
|
|
|
arcnet
|
2020-04-27 22:01:21 +00:00
|
|
|
atm
|
2020-04-27 22:01:22 +00:00
|
|
|
ax25
|
2020-04-27 22:01:24 +00:00
|
|
|
bonding
|
2020-04-27 22:01:25 +00:00
|
|
|
cdc_mbim
|
2020-04-27 22:01:28 +00:00
|
|
|
dccp
|
2020-04-27 22:01:29 +00:00
|
|
|
dctcp
|
2020-04-27 22:01:32 +00:00
|
|
|
dns_resolver
|
2020-04-27 22:01:33 +00:00
|
|
|
driver
|
2020-04-27 22:01:34 +00:00
|
|
|
eql
|
2020-04-27 22:01:35 +00:00
|
|
|
fib_trie
|
2020-04-27 22:01:36 +00:00
|
|
|
filter
|
2020-04-27 22:01:39 +00:00
|
|
|
generic-hdlc
|
2020-04-27 22:01:40 +00:00
|
|
|
generic_netlink
|
2020-04-27 22:01:41 +00:00
|
|
|
gen_stats
|
2020-04-27 22:01:42 +00:00
|
|
|
gtp
|
2020-04-27 22:01:44 +00:00
|
|
|
ila
|
2021-07-28 15:59:12 +00:00
|
|
|
ioam6-sysctl
|
2020-04-27 22:01:45 +00:00
|
|
|
ipddp
|
2020-04-27 22:01:46 +00:00
|
|
|
ip_dynaddr
|
2020-04-27 22:01:48 +00:00
|
|
|
ipsec
|
2020-04-27 22:01:49 +00:00
|
|
|
ip-sysctl
|
2020-04-27 22:01:50 +00:00
|
|
|
ipv6
|
2020-04-27 22:01:51 +00:00
|
|
|
ipvlan
|
2020-04-27 22:01:52 +00:00
|
|
|
ipvs-sysctl
|
2020-04-27 22:01:53 +00:00
|
|
|
kcm
|
2020-04-30 16:03:56 +00:00
|
|
|
l2tp
|
2020-04-30 16:03:57 +00:00
|
|
|
lapb-module
|
2020-04-30 16:03:59 +00:00
|
|
|
mac80211-injection
|
2021-07-29 02:20:53 +00:00
|
|
|
mctp
|
2020-04-30 16:04:00 +00:00
|
|
|
mpls-sysctl
|
2020-11-03 19:05:08 +00:00
|
|
|
mptcp-sysctl
|
2020-04-30 16:04:01 +00:00
|
|
|
multiqueue
|
2020-04-30 16:04:02 +00:00
|
|
|
netconsole
|
2020-04-30 16:04:03 +00:00
|
|
|
netdev-features
|
2020-04-30 16:04:04 +00:00
|
|
|
netdevices
|
2020-04-30 16:04:05 +00:00
|
|
|
netfilter-sysctl
|
2020-04-30 16:04:06 +00:00
|
|
|
netif-msg
|
2021-03-29 15:57:31 +00:00
|
|
|
nexthop-group-resilient
|
2020-04-30 16:04:07 +00:00
|
|
|
nf_conntrack-sysctl
|
2020-04-30 16:04:08 +00:00
|
|
|
nf_flowtable
|
2020-04-30 16:04:09 +00:00
|
|
|
openvswitch
|
2020-04-30 16:04:10 +00:00
|
|
|
operstates
|
2020-04-30 16:04:11 +00:00
|
|
|
packet_mmap
|
2020-04-30 16:04:12 +00:00
|
|
|
phonet
|
2020-04-30 16:04:13 +00:00
|
|
|
pktgen
|
2020-04-30 16:04:14 +00:00
|
|
|
plip
|
2020-04-30 16:04:15 +00:00
|
|
|
ppp_generic
|
2020-04-30 16:04:16 +00:00
|
|
|
proc_net_tcp
|
2020-04-30 16:04:17 +00:00
|
|
|
radiotap-headers
|
2020-04-30 16:04:19 +00:00
|
|
|
rds
|
2020-04-30 16:04:20 +00:00
|
|
|
regulatory
|
2022-09-05 13:55:57 +00:00
|
|
|
representors
|
2020-04-30 16:04:21 +00:00
|
|
|
rxrpc
|
2020-04-30 16:04:22 +00:00
|
|
|
sctp
|
2020-04-30 16:04:23 +00:00
|
|
|
secid
|
2020-04-30 16:04:24 +00:00
|
|
|
seg6-sysctl
|
2022-05-09 16:04:55 +00:00
|
|
|
skbuff
|
2022-03-03 11:35:27 +00:00
|
|
|
smc-sysctl
|
net: tighten the definition of interface statistics
This patch is born out of an investigation into which IEEE statistics
correspond to which struct rtnl_link_stats64 members. Turns out that
there seems to be reasonable consensus on the matter, among many drivers.
To save others the time (and it took more time than I'm comfortable
admitting) I'm adding comments referring to IEEE attributes to
struct rtnl_link_stats64.
Up until now we had two forms of documentation for stats - in
Documentation/ABI/testing/sysfs-class-net-statistics and the comments
on struct rtnl_link_stats64 itself. While the former is very cautious
in defining the expected behavior, the latter feel quite dated and
may not be easy to understand for modern day driver author
(e.g. rx_over_errors). At the same time modern systems are far more
complex and once obvious definitions lost their clarity. For example
- does rx_packet count at the MAC layer (aFramesReceivedOK)?
packets processed correctly by hardware? received by the driver?
or maybe received by the stack?
I tried to clarify the expectations, further clarifications from
others are very welcome.
The part hardest to untangle is rx_over_errors vs rx_fifo_errors
vs rx_missed_errors. After much deliberation I concluded that for
modern HW only two of the counters will make sense. The distinction
between internal FIFO overflow and packets dropped due to back-pressure
from the host is likely too implementation (driver and device) specific
to expose in the standard stats.
Now - which two of those counters we select to use is anyone's pick:
sysfs documentation suggests rx_over_errors counts packets which
did not fit into buffers due to MTU being too small, which I reused.
There don't seem to be many modern drivers using it (well, CAN drivers
seem to love this statistic).
Of the remaining two I picked rx_missed_errors to report device drops.
bnxt reports it and it's folded into "drop"s in procfs (while
rx_fifo_errors is an error, and modern devices usually receive the frame
OK, they just can't admit it into the pipeline).
Of the drivers I looked at only AMD Lance-like and NS8390-like use all
three of these counters. rx_missed_errors counts missed frames,
rx_over_errors counts overflow events, and rx_fifo_errors counts frames
which were truncated because they didn't fit into buffers. This suggests
that rx_fifo_errors may be the correct stat for truncated packets, but
I'd think a FIFO stat counting truncated packets would be very confusing
to a modern reader.
v2:
- add driver developer notes about ethtool stat count and reset
- replace Ethernet with IEEE 802.3 to better indicate source of attrs
- mention byte counters don't count FCS
- clarify RX counter is from device to host
- drop "sightly" from sysfs paragraph
- add examples of ethtool stats
- s/incoming/received/ s/incoming/transmitted/
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-09-03 23:14:31 +00:00
|
|
|
statistics
|
2020-04-30 16:04:26 +00:00
|
|
|
strparser
|
2020-04-30 16:04:27 +00:00
|
|
|
switchdev
|
2020-10-09 07:01:28 +00:00
|
|
|
sysfs-tagging
|
2020-04-30 16:04:28 +00:00
|
|
|
tc-actions-env-rules
|
2020-04-30 16:04:29 +00:00
|
|
|
tcp-thin
|
2020-04-30 16:04:30 +00:00
|
|
|
team
|
2020-04-30 16:04:31 +00:00
|
|
|
timestamping
|
2020-11-29 18:32:51 +00:00
|
|
|
tipc
|
2020-04-30 16:04:32 +00:00
|
|
|
tproxy
|
2020-05-01 14:44:23 +00:00
|
|
|
tuntap
|
2020-05-01 14:44:24 +00:00
|
|
|
udplite
|
2020-05-01 14:44:25 +00:00
|
|
|
vrf
|
2020-05-01 14:44:26 +00:00
|
|
|
vxlan
|
2020-05-01 14:44:27 +00:00
|
|
|
x25-iface
|
2020-05-01 14:44:28 +00:00
|
|
|
x25
|
2020-05-01 14:44:29 +00:00
|
|
|
xfrm_device
|
2020-05-01 14:44:30 +00:00
|
|
|
xfrm_proc
|
2020-05-01 14:44:31 +00:00
|
|
|
xfrm_sync
|
2020-05-01 14:44:32 +00:00
|
|
|
xfrm_sysctl
|
2017-05-12 12:14:02 +00:00
|
|
|
|
2019-07-26 12:51:29 +00:00
|
|
|
.. only:: subproject and html
|
2017-05-12 12:14:02 +00:00
|
|
|
|
|
|
|
Indices
|
|
|
|
=======
|
|
|
|
|
|
|
|
* :ref:`genindex`
|