Statistics
The net_bridge data structure includes an instance of a net_device_stats data structure. Each network device employs
one net_device_stats structure, as described in the
section "Statistics" in Chapter 12. The bridging code uses
only a few fields:
-
tx_packets -
tx_bytes tx_packetsis the number of frames generated locally and transmitted over the bridge device. It is updated bybr_dev_xmit. Note that flooded frames are counted only once, even though they exit all enabled ports.tx_bytes, the sum of the sizes of thetx_packetsframes sent, is also updated bybr_dev_xmit.-
tx_dropped Number of frames that could not be transmitted because the flood routine
br_floodfailed to allocate a buffer.-
rx_packets -
rx_bytes rx_packetsis incremented bybr_pass_frame_upeach time an ingress frame received on the bridge device is delivered locally.rx_bytesis the counterpart oftx_bytes.
All of the routines referenced here are described in Chapter 16.
No statistics are kept by the STP.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access