ENUM ICE_TX_BUF_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ enum ice_tx_buf_type(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– β€” this one's a little enum from the Intel ice driver and it's literally just the vibes of "which kind of Tx buffer am I looking at rn?" πŸ¦‹


🌸 NAME 🌸

enum ice_tx_buf_type β€” tells you the type of &ice_tx_buf to act on at Tx completion πŸ‘‘

πŸŽ€ SYNOPSIS πŸŽ€

enum ice_tx_buf_type {
    ICE_TX_BUF_EMPTY ,
    ICE_TX_BUF_DUMMY ,
    ICE_TX_BUF_FRAG ,
    ICE_TX_BUF_SKB ,
    ICE_TX_BUF_XDP_TX ,
    ICE_TX_BUF_XDP_XMIT ,
    ICE_TX_BUF_XSK_TX

};

like… seven little constants, seven little personalities, each one telling the Tx completion path what it's actually cleaning up 🧚 no cap.

πŸ’… Constants πŸ’…

  • ICE_TX_BUF_EMPTY β€” unused OR XSk frame, so genuinely no action required πŸ™ˆ it's giving "nothing to see here, move along".
  • ICE_TX_BUF_DUMMY β€” dummy Flow Director packet πŸ’€ unmap it and kfree it, that's the whole job.
  • ICE_TX_BUF_FRAG β€” a mapped skb OR an xdp_buff frag β€” only unmap the DMA, that's it, don't do anything extra πŸŽ€
  • ICE_TX_BUF_SKB β€” an sk_buff: unmap and consume_skb, then update stats ✨ (the full package, honestly).
  • ICE_TX_BUF_XDP_TX β€” an xdp_buff: unmap and page_frag_free, plus stats πŸ”₯
  • ICE_TX_BUF_XDP_XMIT β€” an xdp_frame: unmap and xdp_return_frame, plus stats πŸ‘‘
  • ICE_TX_BUF_XSK_TX β€” an xdp_buff on the XSk queue: xsk_buff_free, plus stats 🌈

🫢 SEE ALSO 🫢


that's the whole page, main character energy and all 🌟 β€” brought to you by the source at ./drivers/net/ethernet/intel/ice, October 2026 edition of the Kernel API Manual. slay, go unmap something responsibly πŸ’œπŸ¦‹

πŸ“¦ where this page comes from