From: Shwetha Vittal <cs19resch01001@iith.ac.in>
To: xdp-newbies@vger.kernel.org
Subject: Query on eBPF Map iterator in Kernel space
Date: Mon, 1 Mar 2021 16:57:44 +0530 [thread overview]
Message-ID: <CADutbzUJrgLQvhyd7EGd2EQSJv13rQkCHFpfMJwJkAtYhGLtdw@mail.gmail.com> (raw)
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 .
Kindly help
Thanks
Shwetha
--
Disclaimer:- This footer text is to convey that this email is sent by one
of the users of IITH. So, do not mark it as SPAM.
next reply other threads:[~2021-03-01 11:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-01 11:27 Shwetha Vittal [this message]
2021-03-01 14:40 ` Query on eBPF Map iterator in Kernel space Toke Høiland-Jørgensen
2021-03-02 6:24 ` Y Song
2021-03-03 0:54 ` Shwetha Vittal
2021-03-03 1:33 ` Y Song
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADutbzUJrgLQvhyd7EGd2EQSJv13rQkCHFpfMJwJkAtYhGLtdw@mail.gmail.com \
--to=cs19resch01001@iith.ac.in \
--cc=xdp-newbies@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).