On Fri, Aug 29, 2025 at 11:22 AM Martin KaFai Lau <martin.lau@xxxxxxxxx> wrote: > > On 8/28/25 6:39 AM, Nimrod Oren wrote: > > I'm currently working on a series that converts the xdp_native program > > to use dynptr for accessing header data. If accepted, it should provide > > better performance, since dynptr can access without copying the data. > > The bpf_xdp_adjust_tail is aware of xdp_buff_has_frags. Is there a reason that > bpf_xdp_adjust_head cannot handle frags also? I am not aware of reasons that would stop this. Are you suggesting another way to pop headers? E.g., use bpf_xdp_adjust_head() to shrink the first frag from the front and call bpf_xdp_store_bytes() to move the remaining headers