BPF List
 help / color / mirror / Atom feed
From: Yonghong Song <yhs@fb.com>
To: Simone Magnani <simonemagnani.96@gmail.com>, <bpf@vger.kernel.org>
Subject: Re: [LINUX-KERNEL] - bpf batch support for queue/stack
Date: Fri, 26 Jun 2020 08:59:28 -0700	[thread overview]
Message-ID: <7e8f76ab-c130-36b7-91e4-e155a0a91aa8@fb.com> (raw)
In-Reply-To: <CAP5XGZejdCVA0rk9ctj3=i_QPSDVzJem+nbzz6KVwJaGUS_8GA@mail.gmail.com>



On 6/26/20 5:01 AM, Simone Magnani wrote:
> Hi,
> 
> I'm Simone and I'm new to this community.
> Lately, I've been working on in-kernel traffic analysis with eBPF and
> the newest features released in the latest kernel versions
> (queue/stack, batch operations,...).
> For some reason, I couldn't help but notice that Queues and Stacks bpf
> map types don't support batch operations at all, and I was wondering
> why. Is there any reason why this decision has been made or it is just
> temporary and you are planning to implement it later on?

The initial implementation targets to specific use cases for
hash and array maps. Yes, queue and stack batch operations could
be supported. The necessary infrastructure and example implementation
for hash/array maps are in the kernel tree. You or anyone interested
are welcome to take a try.

> 
> Reference file: linux/kernel/bpf/queue_stack_maps.c (and all the
> others belonging to the same directory)
> 
> Thanks in advance,
> 
> Regards,
> Simone
> 

  reply	other threads:[~2020-06-26 16:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-26 12:01 [LINUX-KERNEL] - bpf batch support for queue/stack Simone Magnani
2020-06-26 15:59 ` Yonghong Song [this message]
2020-06-26 17:09   ` Simone Magnani

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=7e8f76ab-c130-36b7-91e4-e155a0a91aa8@fb.com \
    --to=yhs@fb.com \
    --cc=bpf@vger.kernel.org \
    --cc=simonemagnani.96@gmail.com \
    /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