STRUCT NFP_NFD3_TX_BUF(9)
β¨ NAME β¨
Okay so bestie, we're deep in the Kernel API Manual and the main character is struct nfp_nfd3_tx_buf(9) β literally the software TX buffer descriptor π
It's giving "small struct, big job" energy fr fr π«Ά
β¨ SYNOPSIS β¨
struct nfp_nfd3_tx_buf {
union {
struct sk_buff *skb;
void *frag;
struct xdp_buff *xdp;
};
dma_addr_t dma_addr;
union {
struct {
short int fidx;
u16 pkt_cnt;
};
struct {
bool is_xsk_tx;
};
};
u32 real_len;
};
πΈ Members πΈ
{unnamed_union}β anonymous π«§skbβ normal ring,sk_buffassociated with this bufferfragβ XDP ring, page frag associated with this bufferxdpβ XSK buffer pool handle (for AF_XDP)
dma_addrβ DMA mapping address of the buffer{unnamed_union}β anonymous π«§{unnamed_struct}β anonymousfidxβ Fragment index (-1for the head and[0..nr_frags-1]for frags)pkt_cntβ Number of packets to be produced out of theskbassociated with this buffer (valid only on the head's buffer). Will be1for all non-TSO packets.
{unnamed_struct}β anonymousis_xsk_txβ Flag if buffer is a RX buffer after aXDP_TXaction and not a buffer from the TX queue (for AF_XDP).
real_lenβ Number of bytes which to be produced out of theskb(valid only on the head's buffer). Equal toskb->lenfor non-TSO packets.
π SEE ALSO π
Kernel file ./drivers/net/ethernet/netronome/nfp/nfd3/nfd3.h β go read it, iykyk π
And that's the whole vibe, bestie π this page's source/version footer energy is ./drivers/net/ethernet/netrono..., dated October 2026, all under struct nfp_nfd3_tx_buf(9) β slay, bye π
π¦ 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