qemu-cr16/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>
2025-11-18 19:59:36 +01:00
..
ebpf.c qmp: Added new command to retrieve eBPF blob. 2024-03-12 19:31:47 +08:00
ebpf.h qmp: Added new command to retrieve eBPF blob. 2024-03-12 19:31:47 +08:00
ebpf_rss-stub.c ebpf: Fix stubs to set an error when they return failure 2025-11-18 19:59:36 +01:00
ebpf_rss.c ebpf: Make ebpf_rss_load() return value consistent with @errp 2025-11-18 19:59:36 +01:00
ebpf_rss.h ebpf: add formal error reporting to all APIs 2024-10-28 14:37:25 +08:00
meson.build ebpf: Restrict to system emulation 2024-04-18 11:17:27 +02:00
rss.bpf.skeleton.h ebpf: Return 0 when configuration fails 2024-06-04 15:14:26 +08:00
trace-events ebpf: improve trace event coverage to all key operations 2024-10-28 14:37:25 +08:00
trace.h ebpf: Added traces back. Changed source set for eBPF to 'system'. 2024-06-04 15:14:26 +08:00