aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2024-04-28 16:00:50 +0900
committerJason Wang <jasowang@redhat.com>2024-06-04 15:14:26 +0800
commit283be5966eb7ec18fda3e95c979be620dfb8c72a (patch)
treea2c0a00268614c2d0cd1d8d26134225c1b42c674 /scripts
parent77db537995be8bcab215a99bc9c1b51066b56557 (diff)
downloadqemu-283be5966eb7ec18fda3e95c979be620dfb8c72a.zip
qemu-283be5966eb7ec18fda3e95c979be620dfb8c72a.tar.gz
qemu-283be5966eb7ec18fda3e95c979be620dfb8c72a.tar.bz2
virtio-net: Do not propagate ebpf-rss-fds errors
Propagating ebpf-rss-fds errors has several problems. First, it makes device realization fail and disables the fallback to the conventional eBPF loading. Second, it leaks memory by making device realization fail without freeing memory already allocated. Third, the convention is to set an error when a function returns false, but virtio_net_load_ebpf_fds() and virtio_net_load_ebpf() returns false without setting an error, which is confusing. Remove the propagation to fix these problems. Fixes: 0524ea0510a3 ("ebpf: Added eBPF initialization by fds.") Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions