STRUCT NFP_NFD3_TX_BUF(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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_buff associated with this buffer
    • frag β€” XDP ring, page frag associated with this buffer
    • xdp β€” XSK buffer pool handle (for AF_XDP)
  • dma_addr β€” DMA mapping address of the buffer
  • {unnamed_union} β€” anonymous 🫧
    • {unnamed_struct} β€” anonymous
      • fidx β€” Fragment index (-1 for the head and [0..nr_frags-1] for frags)
      • pkt_cnt β€” Number of packets to be produced out of the skb associated with this buffer (valid only on the head's buffer). Will be 1 for all non-TSO packets.
    • {unnamed_struct} β€” anonymous
      • is_xsk_tx β€” Flag if buffer is a RX buffer after a XDP_TX action and not a buffer from the TX queue (for AF_XDP).
  • real_len β€” Number of bytes which to be produced out of the skb (valid only on the head's buffer). Equal to skb->len for 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