summary refs log tree commit diff stats
path: root/ebpf/ebpf_rss.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ebpf: add formal error reporting to all APIsDaniel P. Berrangé2024-10-281-3/+7
| | | | | | | | | | | | | The eBPF code is currently reporting error messages through trace events. Trace events are fine for debugging, but they are not to be considered the primary error reporting mechanism, as their output is inaccessible to callers. This adds an "Error **errp" parameter to all methods which have important error scenarios to report to the caller. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
* ebpf: Added eBPF initialization by fds.Andrew Melnychenko2024-03-121-0/+5
| | | | | | | | | | It allows using file descriptors of eBPF provided outside of QEMU. QEMU may be run without capabilities for eBPF and run RSS program provided by management tool(g.e. libvirt). Signed-off-by: Andrew Melnychenko <andrew@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
* ebpf: Added eBPF map update through mmap.Andrew Melnychenko2024-03-121-0/+5
| | | | | | | | | | 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 Melnychenko <andrew@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
* ebpf: Added eBPF RSS loader.Andrew Melnychenko2021-06-041-0/+44
Added function that loads RSS eBPF program. Added stub functions for RSS eBPF loader. Added meson and configuration options. By default, eBPF feature enabled if libbpf is present in the build system. libbpf checked in configuration shell script and meson script. Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com> Signed-off-by: Andrew Melnychenko <andrew@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat.com>