ice_run_xdp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_run_xdp(9) β€” a Kernel API Manual moment

okay so bestie, welcome to ice_run_xdp, one of those kernel API manual pages (that's the manual name btw, "Kernel API Manual" β€” iconic), and honestly this one is short but it's doing something. it runs an XDP program on an already-initialized xdp_buff. that's the whole vibe. no cap.


✨ NAME ✨

ice_run_xdp β€” executes an XDP program on initialized xdp_buff πŸ¦‹

like, it literally does what it says on the tin. the buff's already been set up, you're just here to run the program on it. slay.


🌸 SYNOPSIS 🌸

u32 ice_run_xdp (struct ice_rx_ring *rx_ring , struct libeth_xdp_buff
*xdp , struct bpf_prog *xdp_prog , struct ice_tx_ring *xdp_ring , union
ice_32b_rx_flex_desc *eop_desc );

five args, one u32 coming back out, that's the whole relationship. 🀝


πŸŽ€ ARGUMENTS πŸŽ€

  • rx_ring β€” the Rx ring πŸ’– like the ring we're receiving on, bestie. that's it, that's the arg.
  • xdp β€” the xdp_buff that gets fed in as input to the XDP program. it's the main character of this function ngl πŸ‘‘
  • xdp_prog β€” the actual XDP program we're running. the one doing the work. we're just the venue. ✨
  • xdp_ring β€” the ring that gets used for the XDP_TX action. so if your program says "send this back out", this is the ring that handles it πŸ“€
  • eop_desc β€” the last descriptor in the packet, and it's where we read the metadata from πŸ“ "eop" = end of packet, iykyk

πŸ”₯ DESCRIPTION πŸ”₯

okay so hear me out: this function returns any of ICE_XDP_{PASS, CONSUMED, TX, REDIR}.

that's it. that's the description. short king. πŸ’€ it hands you back one of those four outcomes and you take it from there. lowkey the braces are doing a lot of work here but like β€” we respect it.

no extra lore here bestie, the page really is this brief. don't go inventing behaviour, that's not the vibe check we're going for πŸ™ˆ

🧚 SEE ALSO 🧚

the kernel file it lives in β€” go look, it's right there:

Kernel file ./drivers/net/ethernet/intel/ice/ice_txrx.c

and the whole friend group (yes there are a lot of them, this driver has main character energy and a huge contact list) πŸ‘‘


and that's the page!! πŸ’œ mwah. this little gem lives over in ./drivers/net/ethernet/intel/ice, dated October 2026, and it's page ice_run_xdp(9) β€” go forth and run your XDP programs, bestie, you're gonna ate 🫢✨

πŸ“¦ where this page comes from