STRUCT NFP_ALINK_STATS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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_pkts and backlog_bytes are momentary, and overlimits and drops are 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