ENUM ICE_TX_BUF_TYPE(9)
β¨ 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 andkfreeit, that's the whole job.ICE_TX_BUF_FRAGβ a mapped skb OR anxdp_bufffrag β only unmap the DMA, that's it, don't do anything extra πICE_TX_BUF_SKBβ ansk_buff: unmap andconsume_skb, then update stats β¨ (the full package, honestly).ICE_TX_BUF_XDP_TXβ anxdp_buff: unmap andpage_frag_free, plus stats π₯ICE_TX_BUF_XDP_XMITβ anxdp_frame: unmap andxdp_return_frame, plus stats πICE_TX_BUF_XSK_TXβ anxdp_buffon the XSk queue:xsk_buff_free, plus stats π
π«Ά SEE ALSO π«Ά
- Kernel file
./drivers/net/ethernet/intel/ice/ice_txrx.hβ the source of truth, go read it bestie π ice_stats_read(9)ice_stats_inc(9)
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
- 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