rte_eth_stats(3)
β¨ rte_eth_stats π
okay bestie so this is a page from the Library Functions Manual β it's all about rte_eth_stats, and it's genuinely one of those "you'll need this the second you try to figure out why your packets vanished" situations. π
πΈ NAME πΈ
rte_eth_stats β the struct you go to when you wanna know what your Ethernet port has actually been up to π«Ά
β SYNOPSIS β
#include <rte_ethdev.h>
π¦ Data Fields π¦
uint64_t ipackets
uint64_t opackets
uint64_t ibytes
uint64_t obytes
uint64_t imissed
uint64_t ierrors
uint64_t oerrors
uint64_t rx_nombuf
π DETAILED DESCRIPTION π
So basically: this is a structure used to retrieve statistics for an Ethernet port. That's the whole vibe. It's the receipts bag for your NIC. π§Ύ
Not all statistics fields in struct rte_eth_stats are supported by any type of network interface card (NIC). And like... if any statistics field is not supported, its value is 0. Read that again, because this is the part that trips people up: a zero doesn't always mean "nothing happened," sometimes it means "your NIC simply doesn't do that one." π
Also β and this is important, no cap β all byte-related statistics do not include Ethernet FCS, regardless of whether these bytes have been delivered to the application (see RTE_ETH_RX_OFFLOAD_KEEP_CRC). So don't come for the byte counts, they're doing their best. π
Definition at line 262 of file rte_ethdev.h.
π FIELD DOCUMENTATION π
okay this is the part where we meet every single field one by one, group-chat-introduction style π
π uint64_t ipackets
Total number of successfully received packets. The "yay it worked" counter β¨
Definition at line 263 of file rte_ethdev.h.
π uint64_t opackets
Total number of successfully transmitted packets. Sending era π
Definition at line 264 of file rte_ethdev.h.
π uint64_t ibytes
Total number of successfully received bytes. The big number, the main character π
Definition at line 265 of file rte_ethdev.h.
π uint64_t obytes
Total number of successfully transmitted bytes. Sending era, but in volume π₯
Definition at line 266 of file rte_ethdev.h.
π uint64_t imissed
Total of Rx packets dropped by the HW, because there are no available buffer (i.e. Rx queues are full). This one hurts. The hardware literally had nowhere to put them so it said "not my problem" π
Definition at line 271 of file rte_ethdev.h.
π uint64_t ierrors
Total number of erroneous received packets. They arrived, they were just... wrong. π«
Definition at line 272 of file rte_ethdev.h.
π uint64_t oerrors
Total number of failed transmitted packets. We do not talk about these at parties π
Definition at line 273 of file rte_ethdev.h.
π uint64_t rx_nombuf
Total number of Rx mbuf allocation failures. The mbuf pool ran dry, which is its own whole saga π§
Definition at line 274 of file rte_ethdev.h.
π AUTHOR π
Generated automatically by Doxygen for DPDK from the source code. So no human wrote this, the machine did it, and honestly? Slay. π€π
and that's the whole page bestie, you ate that π this was DPDK, Version 26.03.0 β mwah, go read your stats, ily, bye π«Άβ¨π
π¦ where this page comes from
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms