i40e_construct_skb_zc(9)
π i40e_construct_skb_zc(9) β like, the zero-copy Rx glow-up π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a function page and it's literally about building an sk_buff out of a zero-copy Rx buffer. networking girls stay winning π
β¨ NAME β¨
i40e_construct_skb_zc β create an skbuff from a zero-copy Rx buffer π¦
πΈ SYNOPSIS πΈ
struct sk_buff * i40e_construct_skb_zc (struct i40e_ring *rx_ring ,
struct xdp_buff *xdp );
like, give it a ring and an xdp_buff and it hands you back an sk_buff *, periodt π
π ARGUMENTS π
rx_ringβ the Rx ring π (yes, the actual ring, the main character of the receive path)xdpβ thexdp_buffπ§ (the XDP-side buffer bestie)
π DESCRIPTION π
so what it does: this function allocates a new skb from a zero-copy Rx buffer. that's the whole vibe β zero-copy buffer in, shiny new skb out, no extra copying, we love efficiency π₯
it returns the skb, or NULL on failure π (so like, always check, ngl β a NULL return means it did not slay).
π SEE ALSO π
okay the friend group π«Ά β go read these too:
- Kernel file
./drivers/net/ethernet/intel/i40e/i40e_xsk.cπ i40e_realloc_rx_xdp_bi(9)i40e_realloc_rx_bi_zc(9)i40e_xsk_pool_enable(9)i40e_xsk_pool_disable(9)i40e_xsk_pool_setup(9)i40e_run_xdp_zc(9)i40e_clean_rx_irq_zc(9)i40e_xmit_zc(9)i40e_clean_xdp_tx_buffer(9)i40e_clean_xdp_tx_irq(9)i40e_xsk_wakeup(9)i40e_xsk_clean_tx_ring(9)i40e_xsk_any_rx_ring_enabled(9)
like, that's the whole i40e xsk cinematic universe, iykyk π
π«Ά cute lil sign-off: this page came from ./drivers/net/ethernet/intel/i40e, dated October 2026. that's the source/version and the date, bestie β no cap, that's literally all of it. bye, go read the source πβ
π¦ 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