i40e_run_xdp_zc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

i40e_run_xdp_zc β€” bestie, this is the one that executes an XDP program on an xdp_buff πŸ’… (and yes, we're in the Kernel API Manual, section 9, aka the driver-functions zone 🧚)


🌸 SYNOPSIS 🌸

int i40e_run_xdp_zc (struct i40e_ring *rx_ring , struct xdp_buff *xdp ,
struct bpf_prog *xdp_prog );

okay so like. three args, one int back, that's the whole vibe 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • rx_ring β€” the Rx ring, she's the main character here πŸ‘‘
  • xdp β€” the xdp_buff that gets used as input to the XDP program, literally the snack being handed to the program πŸ“
  • xdp_prog β€” the XDP program to run, periodt ⭐

πŸ¦‹ DESCRIPTION πŸ¦‹

This returns any of I40E_XDP_{PASS, CONSUMED, TX, REDIR} β€” that's it, that's the whole function. ikyk the vibe check is just "which of these four did we land on" πŸ’€βœ¨


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/net/ethernet/intel/i40e/i40e_xsk.c β€” go read it, ngl it's giving homework but like, the fun kind πŸ“š


friend group of functions fr fr, they all show up together 🌈

and that's the page!! πŸ’– brought to you by the Kernel API Manual, straight out of ./drivers/net/ethernet/intel/i40e, dated October 2026 πŸŽ€ slay, go write some drivers bestie πŸ¦‹βœ¨πŸ’œ

πŸ“¦ where this page comes from