STRUCT NFP_ALINK_STATS(9)
π struct nfp_alink_stats(9) β from the Kernel API Manual, bestie β¨
Okay so picture this: you're deep in the kernel sources, this is the Kernel API Manual, and there's a lil struct called struct nfp_alink_stats and it's literally the whole vibe of ABM NIC statistics. That's it. That's the NAME section. π
β¨ SYNOPSIS β¨
Here's the shape of it, no cap, don't touch the semicolons:
struct nfp_alink_stats {
u64 tx_pkts;
u64 tx_bytes;
u64 backlog_pkts;
u64 backlog_bytes;
u64 overlimits;
u64 drops;
};
Six u64 fields, all lined up, all iconic. π
π¦ Members π¦
Okay so here's the member-by-member vibe check, one at a time, no skipping:
tx_pktsβ the number of TXed packets. Just counting the packets that got sent out. Slay. πtx_bytesβ the number of TXed bytes. Same energy as above but in bytes, because bytes matter too. πΈbacklog_pktsβ the momentary backlog length, measured in packets. Key word: momentary. It's a snapshot, not a lifetime total. π«Άbacklog_bytesβ the momentary backlog length again, but in bytes this time. Same deal, same "momentary". πoverlimitsβ the number of ECN marked TXed packets, and this one is accumulative. Not momentary. Accumulative. Important distinction, bestie. π₯dropsβ the number of tail-dropped packets, also accumulative. Yes, packets really said "tail drop" and left. π
Not me stressing the difference between "momentary" and "accumulative" β but fr fr,backlog_pktsandbacklog_bytesare momentary, andoverlimitsanddropsare accumulative. Keep that straight and you're golden. π
π§ SEE ALSO π§
Go read these next, they're all in the group chat already:
- The Kernel file
./drivers/net/ethernet/netronome/nfp/abm/main.h struct nfp_abm(9)struct nfp_alink_xstats(9)struct nfp_qdisc(9)struct nfp_abm_link(9)
Like, all of them. Together. A whole little friend group of structs. πβ
And that's the page, bestie β brought to you by the source at ./drivers/net/ethernet/netrono... and dated October 2026. October 2026!! Time traveler energy fr. Go forth and count your packets. ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms