[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 1/5] ebpf: Added eBPF initialization by fds and map updat
From: |
Andrew Melnichenko |
Subject: |
Re: [RFC PATCH 1/5] ebpf: Added eBPF initialization by fds and map update. |
Date: |
Thu, 30 Mar 2023 14:13:39 +0300 |
Hi all,
On Thu, Mar 30, 2023 at 10:10 AM Daniel P. Berrangé <berrange@redhat.com> wrote:
>
> On Thu, Mar 30, 2023 at 02:53:16PM +0800, Jason Wang wrote:
> > On Thu, Mar 30, 2023 at 8:33 AM Andrew Melnychenko <andrew@daynix.com>
> > wrote:
> > >
> > > Changed eBPF map updates through mmaped array.
> > > Mmaped arrays provide direct access to map data.
> > > It should omit using bpf_map_update_elem() call,
> > > which may require capabilities that are not present.
> >
> > This requires kernel support, so after this change, eBPF based RSS
> > doesn't work on old kernels that only support syscall based map
> > updating.
>
It would not work either - bpf_map_update_elem() requires BPF capabilities.
> What kernel version is the cut off ?
If I'm not mistaken - something like kernel 5.5<.
But in any case - the RSS eBPF program is quite big and would require features
like jumpsback.
So, on old kernels, it would not load.
>
>
> With regards,
> Daniel
> --
> |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
> |: https://libvirt.org -o- https://fstop138.berrange.com :|
> |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
>
- [RFC PATCH 0/4] eBPF RSS through QMP support., Andrew Melnychenko, 2023/03/29
- [RFC PATCH 2/5] virtio-net: Added property to load eBPF RSS with fds., Andrew Melnychenko, 2023/03/29
- [RFC PATCH 3/5] ebpf: Added declaration/initialization routines., Andrew Melnychenko, 2023/03/29
- Re: [RFC PATCH 3/5] ebpf: Added declaration/initialization routines., Jason Wang, 2023/03/30
- Re: [RFC PATCH 3/5] ebpf: Added declaration/initialization routines., Daniel P . Berrangé, 2023/03/30
- Re: [RFC PATCH 3/5] ebpf: Added declaration/initialization routines., Jason Wang, 2023/03/31
- Re: [RFC PATCH 3/5] ebpf: Added declaration/initialization routines., Daniel P . Berrangé, 2023/03/31
- Re: [RFC PATCH 3/5] ebpf: Added declaration/initialization routines., Jason Wang, 2023/03/31
- Re: [RFC PATCH 3/5] ebpf: Added declaration/initialization routines., Daniel P . Berrangé, 2023/03/31
- Re: [RFC PATCH 3/5] ebpf: Added declaration/initialization routines., Jason Wang, 2023/03/31