libeth_xdp_save_buff(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Ύ libeth_xdp_save_buff(9) β€” aka the Kernel API Manual moment πŸŽ€

okay so hi bestie, welcome to the Kernel API Manual page for libeth_xdp_save_buff, and honestly? this one's short but it's lowkey a main character move for your NAPI loop ✨


✨ NAME ✨

libeth_xdp_save_buff β€” save a partially built buffer on a queue 🫢

🌸 SYNOPSIS 🌸

void libeth_xdp_save_buff (struct libeth_xdp_buff_stash *dst , const
       struct libeth_xdp_buff *src );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dst β€” the XDP buffer stash that's sitting on the queue πŸ’…
  • src β€” the on-stack buffer you wanna save πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

So here's the vibe check: you call this after the main NAPI polling loop runs. No cap.

If the loop dipped out before the buffer was actually finished, this thing saves its content on the queue so it can be completed during the next poll πŸ”₯ otherwise, it just clears the stash. simple as that, periodt.

ngl this one's a "finish it next time" function β€” if you're done, it wipes the slate clean; if you're not, it holds your spot πŸ’€

⭐ SEE ALSO ⭐

The glow-up squad, aka the whole Kernel file ./include/net/libeth/xdp.h crew πŸ‘‘:


that's the whole page bestie, go forth and save those buffers πŸ’–

sign-off time πŸŽ€ β€” this icon came from the source ./include/net/libeth and it's stamped October 2026, so jot that down iykyk πŸŒˆπŸ’…

πŸ“¦ where this page comes from