reuse_rx_pools(9)
β¨ reuse_rx_pools β¨ (that's the reuse_rx_pools(9) kernel API manual, bestie)
Okay so picture this: you're deep in the ibmvnic driver, section 9 of the kernel API manual, and you just need to know one thing β can I keep my existing rx pools or not? That's literally the whole function. Let's get into it π
πΈ SYNOPSIS πΈ
bool reuse_rx_pools (struct ibmvnic_adapter *adapter );
That's it. One arg, one bool back. Iconic, low-effort, high-value π«Ά
π ARGUMENTS π
adapterβ the ibmvnic adapter, aka the main character of this whole story. That's the thing you're passing in π
π¦ DESCRIPTION π¦
So what this does: it checks whether the rx pools that already exist in the adapter can be reused instead of getting torn down and rebuilt (which, respectfully, is a lot).
The pools can be reused if the pool parameters haven't changed β and there are exactly three of those:
- the number of pools,
- the number of buffers in the pool,
- and the size of each buffer.
If all three are still the same, congratulations, the pools are reusable, no cap β¨
π NOTE π
Heads up bestie, this assumes that all pools have the same number of buffers β which is the case currently. But if that ever changes, we must fix this. So likeβ¦ don't forget. Fr fr. π
π RETURN π
trueif the rx pools can be reused πfalseotherwise π
π SEE ALSO π
The kernel file, right here:
./drivers/net/ethernet/ibm/ibmvnic.c
And the whole friend group, in order:
ibmvnic_wait_for_completion(9)reuse_ltb(9)alloc_long_term_buff(9)free_ltb_set(9)alloc_ltb_set(9)map_rxpool_buf_to_ltb(9)map_txpool_buf_to_ltb(9)release_rx_pools(9)init_rx_pools(9)release_tx_pools(9)reuse_tx_pools(9)init_tx_pools(9)get_hdr_lens(9)create_hdr_descs(9)build_hdr_descs_arr(9)do_passive_init(9)
That's the whole page, babes π§ Go check your pool parameters and slay π
Sign-off time: this one lives under ./drivers/net/ethernet/ibm, dated October 2026, and yes, it's giving very much "kernel docs but make it cute" ππ
π¦ 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