STRUCT NFP_SHARED_BUF(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct nfp_shared_buf(9) β€” like, the NFP shared buffer description, bestie

okay so this is from the Kernel API Manual (manual section 9, iykyk), and it's literally the struct that describes the NFP shared buffer. no cap, that's the whole vibe. let's get into it 🫢


✨ SYNOPSIS ✨

here's the whole thing, character for character, don't touch it:

struct nfp_shared_buf {
    __le32 id;
    __le32 size;
    __le16 ingress_pools_count;
    __le16 egress_pools_count;
    __le16 ingress_tc_count;
    __le16 egress_tc_count;
    __le32 pool_size_unit;
 };

look at her. seven fields, all little-endian, living her best life. iconic πŸ’…


πŸŽ€ Members πŸŽ€

okay bestie, field-by-field, let's go:

  • id β€” the numerical user-visible id of the shared buffer. like, the name tag she wears to the party ✨
  • size β€” the size in bytes of the buffer. the actual, like, how big is she number πŸ“
  • ingress_pools_count β€” the number of ingress pools. yes, specifically ingress. don't mix her up πŸ¦‹
  • egress_pools_count β€” the number of egress pools. the other direction, main character energy πŸ”₯
  • ingress_tc_count β€” the number of ingress traffic classes 🌸
  • egress_tc_count β€” the number of egress traffic classes 🌈
  • pool_size_unit β€” okay so pool size may be in credits, and each credit is pool_size_unit bytes. so it's giving "unit of measurement, but make it credits" πŸ‘‘
lowkey important: that's "may be" in credits β€” the manpage says may, so we're saying may. don't come for me πŸ™ˆ

πŸ‘€ SEE ALSO πŸ‘€

go read these next, fr fr, they're all in the kernel file ./drivers/net/ethernet/netronome/nfp/nfp_abi.h:

  • enum nfp_mbox_cmd(9)
  • struct nfp_shared_buf_pool_id(9)
  • struct nfp_shared_buf_pool_info_get(9)
  • struct nfp_shared_buf_pool_info_set(9)

the whole little friend group πŸ§šπŸ’œ


and that's the page!! sourced from ./drivers/net/ethernet/netrono..., dated October 2026, and yes the footer still says struct nfp_shared_buf(9) because she's consistent like that πŸ’– stay hydrated, go read your ABI headers, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from