]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/net: report errors from failing to use eBPF RSS FDs
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 23 Oct 2024 08:51:01 +0000 (09:51 +0100)
committerJason Wang <jasowang@redhat.com>
Mon, 28 Oct 2024 06:37:25 +0000 (14:37 +0800)
commitb5900dff14e5a8334766de6b37629c8020c6bbb0
treef4eefa01dd74427995847e079f8ca358cb04e575
parent00b69f1d867ddcf8884c92f5647b424088e754e4
hw/net: report errors from failing to use eBPF RSS FDs

If the user/mgmt app passed in a set of pre-opened FDs for eBPF RSS,
then it is expecting QEMU to use them. Any failure to do so must be
considered a fatal error and propagated back up the stack, otherwise
deployment mistakes will not be detectable in a prompt manner. When
not using pre-opened FDs, then eBPF RSS is tried on a "best effort"
basis only and thus fallback to software RSS is valid.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/virtio-net.c