nfp_net_rx_ring_bufs_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ nfp_net_rx_ring_bufs_free(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… this one's a little function with a big job and honestly it does exactly what it says on the tin β€” it's nfp_net_rx_ring_bufs_free, and it's here to clean up the RX ring. let's get into it 🧚


πŸŽ€ NAME πŸŽ€

nfp_net_rx_ring_bufs_free β€” frees any buffers that are currently hanging out on the RX ring 🫢 like, they're done, they're being sent home, bye πŸ’–


🌸 SYNOPSIS 🌸

void nfp_net_rx_ring_bufs_free (struct nfp_net_dp *dp , struct
       nfp_net_rx_ring *rx_ring );

no return value, it's a void girlie β€” it just does the thing and dips ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dp β€” the NFP Net data path struct πŸ‘‘ this is your main character struct, the big picture.
  • rx_ring β€” the RX ring you wanna remove buffers from πŸŽ€ like, the specific one, pls be specific.

πŸ’œ DESCRIPTION πŸ’œ

so here's the vibe check: this function assumes the device is stopped and that the buffers are sitting in the [0, ring->cnt - 1) entries 😌 no cap, that's the arrangement it expects.

and then β€” this part matters bestie β€” once the device is disabled, you must call nfp_net_rx_ring_reset to restore the required ring geometry. like, not optional, not a suggestion, it's giving required-esque 😭 don't skip it fr fr.

⚠️ reminder: device stopped βœ… buffers in [0, ring->cnt - 1) βœ… and after disabling, call nfp_net_rx_ring_reset to restore ring geometry β€” that's the whole deal πŸ’€

🌈 SEE ALSO 🌈

like, the whole little friend group of ring functions, go read them all, iykyk πŸ’…βœ¨


and that's the page bb πŸ“ this lil icon came from ./drivers/net/ethernet/netrono... and it's dated October 2026 β€” mwah, slay, go free those buffers responsibly πŸ”₯πŸ‘‘πŸ¦‹

πŸ“¦ where this page comes from