__libeth_xdp_run_flush(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __libeth_xdp_run_flush (9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so picture this: it's a kernel manual page, right, and it's about running an XDP program and handling what happens when the prog says XDP_TX. that's the whole vibe. it's giving "internal helper energy" and honestly? iconic. ✨


🌸 NAME 🌸

__libeth_xdp_run_flush β€” run the XDP program and handle the XDP_TX verdict, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

u32 __libeth_xdp_run_flush (struct libeth_xdp_buff *xdp , struct
libeth_xdp_tx_bulk *bq , u32 (*run)(struct libeth_xdp_buff *xdp, const
struct libeth_xdp_tx_bulk *bq) , bool (*queue)(struct libeth_xdp_tx_bulk
*bq, struct libeth_xdp_buff *xdp, bool (*flush_bulk) (struct
libeth_xdp_tx_bulk *bq, u32 flags)) , bool (*flush_bulk)(struct
libeth_xdp_tx_bulk *bq, u32 flags) );

like, yes, that's a lot of function pointers. she's complex. she's worth it. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • xdp β€” the XDP buffer you're running the prog on. the main character of this whole operation πŸ’–
  • bq β€” the buffer bulk used for XDP_TX queueing. this is where the frames go to hang out πŸ¦‹
  • run β€” an internal callback for running the XDP program. it does the actual prog-running thing ✨
  • queue β€” an internal callback for queueing an XDP_TX frame. lowkey the whole point of the flush situation 🌸
  • flush_bulk β€” the driver callback for flushing a bulk. yes bestie, the driver brings this one πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

so this is an internal inline abstraction β€” and when i say internal, i mean it β€” that runs the XDP program and additionally handles the XDP_TX verdict. both things. at once. multitasking queen πŸ‘‘

it's used by both XDP and XSk, which is exactly why you see both run and queue hanging out in the signature. iykyk 🧚

⚠️ Do not use directly. fr fr. this one is not for you, it's for the internals. respect the boundary πŸ™ˆ

⭐ RETURN ⭐

returns the libeth_xdp prog verdict, depending on the prog's verdict. yeah, it's verdict-ception πŸ’€ β€” whatever the prog decides is what comes back out.


🌈 SEE ALSO 🌈

okay this list is long and every single one of these deserves their flowers, so buckle up bestie πŸ“

Kernel file ./include/net/libeth/xdp.h, plus:

like, go read them. they're all eating, honestly πŸ”₯


and that's the whole page, bestie!! 🫢 this lil number lives in ./include/net/libeth, dated October 2026, and it's part of the Kernel API Manual β€” so next time you see __libeth_xdp_run_flush(9) out in the wild you'll know exactly what's tea. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from