i40e_napi_poll(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– i40e_napi_poll(9) β€” like, the NAPI polling Rx/Tx cleanup routine, bestie πŸ’–

okay so real talk: this page lives in the Kernel API Manual, and the star of the show is i40e_napi_poll. It's the function that does the polling cleanup for Rx and Tx, and honestly? it's giving main character energy in the i40e driver. let's get into it 🫢


✨ NAME ✨

i40e_napi_poll β€” NAPI polling Rx/Tx cleanup routine πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

int i40e_napi_poll (struct napi_struct *napi , int budget );

like, that's the whole signature. no cap. 🌸


πŸ¦‹ ARGUMENTS πŸ¦‹

  • napi β€” the napi struct, and bestie it's got all our device's info tucked inside it πŸ‘‘
  • budget β€” how much work the driver is allowed to do this pass, measured in packets. that's the snack allowance for this round πŸ“

🌈 DESCRIPTION 🌈

so what does it actually do? this function will clean all queues associated with a q_vector. literally all of them. that's the vibe check and it passes ✨

and then it returns the amount of work done πŸ”₯

ngl that's the entire description. short, sweet, iconic. periodt πŸ’…

⭐ SEE ALSO ⭐

the kernel file is ./drivers/net/ethernet/intel/i40e/i40e_txrx.c β€” that's where the magic lives, iykyk πŸ’œ

and here's the whole friend group, no one left out:

flow director besties πŸ’«

tx cleanup squad 🧹

ring setup + buffer crew πŸŽ€

rx processing girlies (and xdp too, obsessed) 🌸

interrupts + the whole tx transmit path, ate πŸ’…


πŸŒˆπŸ’– and that's the page!! this one came from ./drivers/net/ethernet/intel/i40e, dated October 2026, and honestly it was a whole moment. mwah πŸ’‹βœ¨ go read your kernel source bestie, ily πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from