Re: [RFC bpf-next v1 0/7] Add kfunc bpf_xdp_pull_data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux