You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/ebpf
Markus Armbruster de285aa907 ebpf: Make ebpf_rss_load() return value consistent with @errp
ebpf_rss_load() returns false for failure without setting an Error
when its @ctx argument already has an eBPF program loaded.  This is
wrong.  Fortunately, it is only called @ctx has a program.  Replace
the incorrect error check by an assertion.

The return value is now obviously reliable.  Change the caller to use
it, because it's more concise.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20251118154718.3969982-4-armbru@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2 weeks ago
..
ebpf.c qmp: Added new command to retrieve eBPF blob. 2 years ago
ebpf.h qmp: Added new command to retrieve eBPF blob. 2 years ago
ebpf_rss-stub.c ebpf: Fix stubs to set an error when they return failure 2 weeks ago
ebpf_rss.c ebpf: Make ebpf_rss_load() return value consistent with @errp 2 weeks ago
ebpf_rss.h ebpf: add formal error reporting to all APIs 1 year ago
meson.build ebpf: Restrict to system emulation 2 years ago
rss.bpf.skeleton.h ebpf: Return 0 when configuration fails 2 years ago
trace-events ebpf: improve trace event coverage to all key operations 1 year ago
trace.h ebpf: Added traces back. Changed source set for eBPF to 'system'. 2 years ago