Re: [PATCH bpf-next v2 3/7] bpf: Support pulling non-linear xdp data

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

 



On Mon, Sep 8, 2025 at 12:27 PM Martin KaFai Lau <martin.lau@xxxxxxxxx> wrote:
>
> On 9/5/25 10:33 AM, Amery Hung wrote:
> > An unused argument, flags is reserved for future extension (e.g.,
> > tossing the data instead of copying it to the linear data area).
>
> > +__bpf_kfunc int bpf_xdp_pull_data(struct xdp_md *x, u32 len, u64 flags)
>
> I was thinking the flag may be needed to avoid copy. I think we have recently
> concluded that bpf_xdp_adjust_head can support shrink on multi buf also. If it
> is the case, it is probably better to keep a similar api as the
> bpf_skb_pull_data which does not have the flags argument.
>

Make sense. I will remove flags.





[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