i40e_add_xdp_frag(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i40e_add_xdp_frag(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is the page for i40e_add_xdp_frag, and honestly? it's a little one. short king energy πŸ‘‘. no cap.


πŸŽ€ NAME πŸŽ€

i40e_add_xdp_frag β€” add a frag to xdp_buff πŸ¦‹

literally what it says on the tin, bestie. a frag goes in, the xdp_buff gets happier.


✨ SYNOPSIS ✨

int i40e_add_xdp_frag (struct xdp_buff *xdp , u32 *nr_frags , struct
i40e_rx_buffer *rx_buffer , u32 size );

it returns an int, it takes four things, that's the whole vibe 🌸


πŸ’– ARGUMENTS πŸ’–

  • xdp β€” the xdp_buff pointing to the data πŸ‘‰ the main character of this whole operation, tbh.
  • nr_frags β€” the return number of buffers for the packet πŸ”’ so yeah, this one gets written back to β€” it's reporting back to you, like a good bestie.
  • rx_buffer β€” the rx_buffer holding data of the current frag πŸ“ that's where the actual bytes live.
  • size β€” size of data of current frag πŸ“ how much of it there is. respectful.

πŸ’€ SEE ALSO πŸ’€

kernel file ./drivers/net/ethernet/intel/i40e/i40e_txrx.c β€” yeah that's the one, go read it, iykyk 🧚

and like, an absolute iconic friend group of functions, all showing up to the party in (9) form:


ngl bestie, that's a lot of cross-references. but every single one is a real one, so don't skip 'em πŸ’…

and that's the whole page!! 🫢 shoutout to ./drivers/net/ethernet/intel/i40e for being the source, and to October 2026 for the date β€” iconic era, truly. bye bestie, go add some frags πŸ’œπŸ’–βœ¨

πŸ“¦ where this page comes from