STRUCT NFP_SHARED_BUF(9)
π 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 ispool_size_unitbytes. 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
- 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