Re: Query on eBPF Map iterator in Kernel space

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

 



On Mon, Mar 1, 2021 at 6:44 AM Toke Høiland-Jørgensen <toke@xxxxxxxxxx> wrote:
>
> Shwetha Vittal <cs19resch01001@xxxxxxxxxx> writes:
>
> > Hi,
> >
> > Is there any way to iterate through eBPF Map elements in kernel space.
> > I know that there is one at user space bpf_map_get_next_key(). But it
> > doesn't work when tried in kernel space. I have a requirement to find
> > the record in the eBPF map which has the least value in kernel space
> > and pick it for further packet processing and therefore need to
> > iterate through eBF Map .
>
> There will be soon:
> https://lore.kernel.org/bpf/20210226204920.3884074-1-yhs@xxxxxx/

What kind of maps are you trying to iterate? The above patch set
supports hash and array maps. Also, the above patch set has been
merged into bpf-next repo. Feel free to experiment with it!

>
> -Toke
>




[Index of Archives]     [Linux Networking Development]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Campsites]

  Powered by Linux