libeth_xdp_finalize_rx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… libeth_xdp_finalize_rx(9) πŸ’…

okay so this is a page from the Kernel API Manual and honestly? it's a little guy with a big job. bestie, meet libeth_xdp_finalize_rx β€” the function that wraps up your XDPSQ after a NAPI polling loop (non-XSk flavor, iykyk). ✨


🌸 NAME 🌸

libeth_xdp_finalize_rx β€” finalize XDPSQ after a NAPI polling loop (non-XSk)

like it literally says it on the tin, no cap. you poll, and then you finalize. that's the whole vibe. πŸŽ€


⭐ SYNOPSIS ⭐

libeth_xdp_finalize_rx (bq , flush , finalize );

three args, one call, zero drama. periodt. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bq β€” the XDP_TX frame bulk. yes bestie, this is the bulk β€” the pile of frames you're holding onto. she's the main character here. πŸ‘‘
  • flush β€” driver callback that flushes the bulk. your escape hatch when there's still stuff to push out. πŸš€
  • finalize β€” driver callback that starts sending the frames and runs the timer. the finishing move, the slay-at-the-end moment. ⏰

πŸ’– DESCRIPTION πŸ’–

so here's the tea, and it's a short one:

Flush the bulk if there are frames left to send, kick the queue, and flush the XDP maps.

that's it. that's the function. three little moves: leftover frames β†’ flush them, queue β†’ kick it, XDP maps β†’ flush those too. literally the cleanup crew of the XDP world and we love her for it. 🧹✨

ngl it's giving "last one out, turn off the lights" energy but make it kernel. 🫢


🌈 SEE ALSO 🌈

all the siblings and cousins and extended family live in the kernel file ./include/net/libeth/xdp.h β€” go say hi to them, fr fr:


okay that's the whole page bestie, you ate that πŸ’…βœ¨

cute little sign-off: this one comes from the source ./include/net/libeth, dated October 2026. go forth and finalize responsibly. πŸ“πŸ§šπŸ’œ
πŸ“¦ where this page comes from