libeth_xsk_run_prog(9)
π libeth_xsk_run_prog β Kernel API Manual energy β¨
okay so bestie, we're deep in the kernel networking lore rn and this one's called libeth_xsk_run_prog(9) β it lives in the Kernel API Manual and it's literally the "run the XDP program on the XSk path and deal with every single verdict" girlie π
β¨ SYNOPSIS β¨
libeth_xsk_run_prog (xdp , bq , fl );
like, three args, no drama π
π«Ά ARGUMENTS π«Ά
xdpβ the XSk buffer you want processed. that's the main character of this call, no cap πΈbqβ the XDP Tx bulk where all theXDP_TXbuffers get queued up π¦flβ the driver'sXDP_TXbulk flush callback. she's the one who actually flushes it π
π DESCRIPTION π
so what she does is: run the attached XDP program, and then handle all the possible verdicts that come back. every. single. one. π
and lowkey the move here is β prefer using it via LIBETH_XSK_DEFINE_RUN{,_PASS,_PROG}() instead of calling it raw. iykyk π₯
β RETURN β
returns a libeth_xdp prog verdict, which depends entirely on whatever verdict the prog itself gave back. it's giving "you get what you give" β¨
π SEE ALSO π
the kernel file is ./include/net/libeth/xsk.h, and then the whole friend group:
libeth_xsk_tx_queue_head(9)libeth_xsk_tx_queue_frag(9)libeth_xsk_tx_queue_bulk(9)libeth_xsk_tx_fill_buf(9)libeth_xsk_tx_flush_bulk(9)libeth_xsktmo_req_csum(9)__libeth_xsk_xmit_fill_buf_md(9)__libeth_xsk_xmit_fill_buf(9)libeth_xsk_xmit_fill_buf(9)libeth_xsk_xmit_do_bulk(9)libeth_xsk_tx_init_bulk(9)libeth_xsk_process_buff(9)__libeth_xsk_run_prog(9)__libeth_xsk_run_pass(9)libeth_xsk_run_pass(9)libeth_xsk_finalize_rx(9)LIBETH_XSK_DEFINE_FLUSH_TX(9)LIBETH_XSK_DEFINE_RUN_PROG(9)LIBETH_XSK_DEFINE_RUN_PASS(9)LIBETH_XSK_DEFINE_RUN(9)LIBETH_XSK_DEFINE_FINALIZE(9)struct libeth_xskfq(9)libeth_xsk_buff_xdp_get_dma(9)libeth_xskfqe_alloc(9)
go read the whole squad honestly, they all ate π
k bye bestie, this page was brought to you from ./include/net/libeth and stamped October 2026 β stan the kernel docs, mwah ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms