i40e_realloc_rx_bi_zc(9)
π
i40e_realloc_rx_bi_zc β like, the kernel API manual page, bestie β¨
okay so real talk, this whole page lives in section 9 β the Kernel API Manual β and it's literally all about one function: i40e_realloc_rx_bi_zc. yes the name is a mouthful. no you cannot shorten it. iykyk π«Ά
πΈ NAME πΈ
i40e_realloc_rx_bi_zc β reallocate rx SW rings π«
like... it's giving "the rings need more room." that's the whole vibe.
β¨ SYNOPSIS β¨
int i40e_realloc_rx_bi_zc (struct i40e_vsi *vsi , bool zc );
look at her. two args. returns an int. iconic behavior honestly π
π ARGUMENTS π
vsiβ Current VSI. yes bestie, the VSI we're working on, the one right in front of you πzcβ is zero copy set. that's it, that's the flag, don't overthink it π¦
π DESCRIPTION π
So here's the tea: this function reallocates the buffer for rx_rings β and those rings might be used by XSK. mmhmm. XSK. get into it.
And why do we care?? because XDP requires more memory than rx_buf provides π like it literally just needs a bigger fit. so we reallocate. slay.
Return value check, because we're responsible queens:
- returns
0on success π₯³ - returns a negative value on failure π
periodt. that's the spec.
no cap, if you get a negative back, something did NOT eat. handle it.
π§ SEE ALSO π§
the source file itself, because of course we link the lore:
- Kernel file
./drivers/net/ethernet/intel/i40e/i40e_xsk.c
and the whole friend group, in order, bestie:
i40e_realloc_rx_xdp_bi(9)i40e_xsk_pool_enable(9)i40e_xsk_pool_disable(9)i40e_xsk_pool_setup(9)i40e_run_xdp_zc(9)i40e_construct_skb_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)
go read them. all of them. it's a whole saga π
π and that's the page!! shoutout to ./drivers/net/ethernet/intel/i40e for housing all this, and to October 2026 for the timestamp β no thoughts, just a very dated but very valid manual entry. bye bestie, go realloc 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