Re: [PATCH v5 1/5] ebpf: Added eBPF map update through mmap.

2023-08-20 Thread Jason Wang
On Fri, Aug 18, 2023 at 10:08 AM Andrew Melnichenko wrote: > > Hi all, > > On Wed, Aug 16, 2023 at 4:16 AM Jason Wang wrote: > > > > On Mon, Aug 14, 2023 at 4:36 PM Andrew Melnichenko > > wrote: > > > > > > Hi, all. > > > > > > I've researched an issue a bit. And what can we do? > > > In the

Re: [PATCH v5 1/5] ebpf: Added eBPF map update through mmap.

2023-08-17 Thread Andrew Melnichenko
Hi all, On Wed, Aug 16, 2023 at 4:16 AM Jason Wang wrote: > > On Mon, Aug 14, 2023 at 4:36 PM Andrew Melnichenko wrote: > > > > Hi, all. > > > > I've researched an issue a bit. And what can we do? > > In the case of an "old" kernel 5.4, we need to load RSS eBPF without > > BPF_F_MAPPABLE > >

Re: [PATCH v5 1/5] ebpf: Added eBPF map update through mmap.

2023-08-15 Thread Jason Wang
On Mon, Aug 14, 2023 at 4:36 PM Andrew Melnichenko wrote: > > Hi, all. > > I've researched an issue a bit. And what can we do? > In the case of an "old" kernel 5.4, we need to load RSS eBPF without > BPF_F_MAPPABLE > and use bpf syscall to update the maps. This requires additional capabilities, >

Re: [PATCH v5 1/5] ebpf: Added eBPF map update through mmap.

2023-08-14 Thread Andrew Melnichenko
Hi, all. I've researched an issue a bit. And what can we do? In the case of an "old" kernel 5.4, we need to load RSS eBPF without BPF_F_MAPPABLE and use bpf syscall to update the maps. This requires additional capabilities, and the libvirtd will never give any capabilities to Qemu. So, the only

Re: [PATCH v5 1/5] ebpf: Added eBPF map update through mmap.

2023-08-08 Thread Jason Wang
On Wed, Aug 9, 2023 at 7:15 AM Andrew Melnichenko wrote: > > Hi all, > > On Tue, Aug 8, 2023 at 5:39 AM Jason Wang wrote: > > > > On Thu, Aug 3, 2023 at 5:01 AM Andrew Melnychenko wrote: > > > > > > Changed eBPF map updates through mmaped array. > > > Mmaped arrays provide direct access to map

Re: [PATCH v5 1/5] ebpf: Added eBPF map update through mmap.

2023-08-08 Thread Andrew Melnichenko
Hi all, On Tue, Aug 8, 2023 at 5:39 AM Jason Wang wrote: > > On Thu, Aug 3, 2023 at 5:01 AM Andrew Melnychenko 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

Re: [PATCH v5 1/5] ebpf: Added eBPF map update through mmap.

2023-08-07 Thread Jason Wang
On Thu, Aug 3, 2023 at 5:01 AM Andrew Melnychenko 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. > > Signed-off-by: Andrew