]> git.ipfire.org Git - thirdparty/qemu.git/commit
ebpf: add formal error reporting to all APIs
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 23 Oct 2024 08:51:00 +0000 (09:51 +0100)
committerJason Wang <jasowang@redhat.com>
Mon, 28 Oct 2024 06:37:25 +0000 (14:37 +0800)
commit00b69f1d867ddcf8884c92f5647b424088e754e4
tree3f53103f187c3861380a18fba5fa216f6937037d
parent31efce1e311830431718536c6461815b04e08bf9
ebpf: add formal error reporting to all APIs

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/ebpf_rss-stub.c
ebpf/ebpf_rss.c
ebpf/ebpf_rss.h
hw/net/virtio-net.c