reuse_tx_pools(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– reuse_tx_pools(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual corner of the group chat β€” today's main character is reuse_tx_pools, and honestly? she's a little vibe-check function for your ibmvnic adapter πŸ¦‹


✨ NAME ✨

reuse_tx_pools β€” Check if the existing tx pools can be reused. πŸŽ€


🌸 SYNOPSIS 🌸

bool reuse_tx_pools (struct ibmvnic_adapter *adapter );

πŸŽ€ ARGUMENTS πŸŽ€

  • adapter β€” ibmvnic adapter πŸ’… that's the one and only thing she takes, no cap

πŸ’« DESCRIPTION πŸ’«

So like, this function checks if the existing tx pools in the adapter can be reused. That's literally it, she's a vibe check for pools πŸ”₯

And when can they be reused? When the pool parameters haven't changed β€” and the pool parameters in question are:

  • the number of pools
  • the number of buffers in the pool
  • and mtu

If all three are unchanged, the pools get the green light to be reused, periodt ✨


πŸ™ˆ NOTE πŸ™ˆ

okay so real talk, this assumes that all pools have the same number of buffers, which is the case currently. If that changes, we must fix this. 🫢 like, noted, bestie, no cap


⭐ RETURN ⭐

  • true if the tx pools can be reused πŸ’–
  • false otherwise 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/net/ethernet/ibm/ibmvnic.c πŸ“

And the whole friend group, fr fr:

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), reuse_rx_pools(9), init_rx_pools(9), release_tx_pools(9), init_tx_pools(9), get_hdr_lens(9), create_hdr_descs(9), build_hdr_descs_arr(9), do_passive_init(9) πŸ‘‘


okay that's the whole page, mwah πŸ’‹ this one lives in ./drivers/net/ethernet/ibm, dated October 2026, and it's giving very much kernel manual energy β€” go off, icon πŸ‘‘βœ¨πŸ’œ

πŸ“¦ where this page comes from