BPF List
 help / color / mirror / Atom feed
* [LINUX-KERNEL] - bpf batch support for queue/stack
@ 2020-06-26 12:01 Simone Magnani
  2020-06-26 15:59 ` Yonghong Song
  0 siblings, 1 reply; 3+ messages in thread
From: Simone Magnani @ 2020-06-26 12:01 UTC (permalink / raw)
  To: bpf

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?

Reference file: linux/kernel/bpf/queue_stack_maps.c (and all the
others belonging to the same directory)

Thanks in advance,

Regards,
Simone

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LINUX-KERNEL] - bpf batch support for queue/stack
  2020-06-26 12:01 [LINUX-KERNEL] - bpf batch support for queue/stack Simone Magnani
@ 2020-06-26 15:59 ` Yonghong Song
  2020-06-26 17:09   ` Simone Magnani
  0 siblings, 1 reply; 3+ messages in thread
From: Yonghong Song @ 2020-06-26 15:59 UTC (permalink / raw)
  To: Simone Magnani, bpf



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
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LINUX-KERNEL] - bpf batch support for queue/stack
  2020-06-26 15:59 ` Yonghong Song
@ 2020-06-26 17:09   ` Simone Magnani
  0 siblings, 0 replies; 3+ messages in thread
From: Simone Magnani @ 2020-06-26 17:09 UTC (permalink / raw)
  To: Yonghong Song; +Cc: bpf

Thanks Yonghong, clear and straight to the point.
I'll update you if I will be able to make it, by now many thanks :)

Il giorno ven 26 giu 2020 alle ore 18:00 Yonghong Song <yhs@fb.com> ha scritto:
>
>
>
> 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
> >

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-26 17:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-26 12:01 [LINUX-KERNEL] - bpf batch support for queue/stack Simone Magnani
2020-06-26 15:59 ` Yonghong Song
2020-06-26 17:09   ` Simone Magnani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox