xdp_return_frag(9)
hii bestie π welcome to the xdp_return_frag(9) page from the Kernel API Manual. This is the function that handles one XDP frag: it frees it, or it decrements its refcount. That's the whole assignment. β¨
π NAME π
xdp_return_frag β free one XDP frag or decrement its refcount
π SYNOPSIS π
void xdp_return_frag (netmem_ref netmem , const struct xdp_buff *xdp );
πΈ ARGUMENTS πΈ
Okay so there are two args, and both matter, fr fr:
netmemβ the network memory reference to release. this is the thing getting the release treatment π«Άxdpβ thexdp_buffto release the frag for. it's giving "pass the buff, handle the frag" π
π¦ SEE ALSO π¦
Kernel file ./net/core/xdp.c is right there, and these pages are also in the group chat:
xdp_reg_page_pool(9)xdp_unreg_page_pool(9)xdp_rxq_info_attach_page_pool(9)xdp_build_skb_from_buff(9)xdp_copy_frags_from_zc(9)xdp_build_skb_from_zc(9)bpf_xdp_metadata_rx_timestamp(9)bpf_xdp_metadata_rx_hash(9)bpf_xdp_metadata_rx_vlan_tag(9)
mwah π this little page is brought to you by source/version ./net/core, dated October 2026, and it's still xdp_return_frag(9) β periodt. π
π¦ 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