STRUCT NFP_REPR_PCPU_STATS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct nfp_repr_pcpu_stats(9) β€” kernel API manual, but make it make sense

okay bestie, so this is a struct page from the Kernel API Manual β€” literally the docs for struct nfp_repr_pcpu_stats. it's a per-CPU stats block for NFP representors and it's lowkey just counters + a sync thing. no cap, that's the whole vibe. let's get into it 🫢


✨ NAME ✨

struct nfp_repr_pcpu_stats β€” that's it, that's the name, the manpage literally leaves the description blank so we're just here for the struct itself πŸ’€


🌸 SYNOPSIS 🌸

here's the whole thing, character for character, don't @ me:

struct nfp_repr_pcpu_stats {
    u64 rx_packets;
    u64 rx_bytes;
    u64 tx_packets;
    u64 tx_bytes;
    u64 tx_drops;
    struct u64_stats_sync syncp;
 };

like, look at her. five u64 counters and one struct u64_stats_sync. main character energy honestly πŸ‘‘


πŸŽ€ Members πŸŽ€

bestie we are going member by member, no skipping, i promised:

  • rx_packets β€” received packets. like, how many packets came in. that's the count πŸ“
  • rx_bytes β€” received bytes. how much data came in, in bytes. yes it's different from packets, yes you need both πŸ’–
  • tx_packets β€” transmitted packets. packets that went out πŸ“€
  • tx_bytes β€” the manpage says "Transmitted dropped" and i'm not gonna lie to you, that's word-for-word what the original says 😭 i'm not "fixing" it, i'm not guessing at it, i'm just telling you exactly what's written. copy it faithfully, that's the rule 🫑
  • tx_drops β€” packets dropped on transmit. these are the packets that did not slay πŸ’€
  • syncp β€” described as "Reference count". it's the struct u64_stats_sync field, so it's your sync buddy for the per-CPU stats. keep it, don't lose it 🧚

πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, for real fr fr:

  • Kernel file ./drivers/net/ethernet/netronome/nfp/nfp_net_repr.h
  • struct nfp_reprs(9)
  • struct nfp_repr(9)
  • enum nfp_repr_type(9)

heads up bestie: the source line at the bottom is literally truncated in the original β€” ./drivers/net/ethernet/netrono... β€” so i'm leaving it truncated. i'm not out here inventing the rest of the path πŸ™ˆ

and that's the page! 🌈 cute little sign-off time: this one came from ./drivers/net/ethernet/netrono... and it's dated October 2026, and the page is struct nfp_repr_pcpu_stats(9). mwah, go read the actual header file, iykyk πŸ’œβœ¨

πŸ“¦ where this page comes from