mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
virtio-net: Added eBPF RSS to virtio-net.
When RSS is enabled the device tries to load the eBPF program to select RX virtqueue in the TUN. If eBPF can be loaded the RSS will function also with vhost (works with kernel 5.8 and later). Software RSS is used as a fallback with vhost=off when eBPF can't be loaded or when hash population requested by the guest. Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com> Signed-off-by: Andrew Melnychenko <andrew@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
46627f41b6
commit
0145c39348
4 changed files with 122 additions and 3 deletions
|
@ -54,6 +54,8 @@ const int vdpa_feature_bits[] = {
|
|||
VIRTIO_NET_F_MTU,
|
||||
VIRTIO_F_IOMMU_PLATFORM,
|
||||
VIRTIO_F_RING_PACKED,
|
||||
VIRTIO_NET_F_RSS,
|
||||
VIRTIO_NET_F_HASH_REPORT,
|
||||
VIRTIO_NET_F_GUEST_ANNOUNCE,
|
||||
VIRTIO_NET_F_STATUS,
|
||||
VHOST_INVALID_FEATURE_BIT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue