On Fri, Sep 9, 2022 at 9:52 AM Shmulik Ladkani <shmulik.ladkani@xxxxxxxxx> wrote: > > On Wed, 7 Sep 2022 17:02:50 -0700 Joanne Koong <joannelkoong@xxxxxxxxx> wrote: > > > + * long bpf_dynptr_get_offset(struct bpf_dynptr *ptr) > > + * Description > > + * Get the offset of the dynptr. > > + * > > The offset is an internal thing of the dynptr. > > The user may initialize the dynptr and "advance" it using APIs. > > Why do we need to expose the internal offset to the ebpf user? There might be use cases where knowing the offset is helpful (for example, when packet parsing, a user may want to know how far they are from the start of the packet)