STRUCT NFP_REPR_PCPU_STATS(9)
π 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 thestruct u64_stats_syncfield, 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
- 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