This patch series was extracted from: https://lore.kernel.org/qemu-devel/20250313-hash-v4-0-c75c494b4...@daynix.com/ ("[PATCH RFC v4 00/11] virtio-net: Offload hashing without eBPF")
According to the specification, virtio-net devices with VIRTIO_NET_F_RSS or VIRTIO_NET_F_HASH_REPORT can report supported hash types: https://docs.oasis-open.org/virtio/virtio/v1.2/csd01/virtio-v1.2-csd01.html#x1-2230004 vDPA also implements the same functionality, but QEMU currently does not respect it. Ensure that the vDPA device satisfies the requirements of the VM by checking the supported hash types. This also helps add another hashing mechanism proposed by the patch series mentioned earlier. Signed-off-by: Akihiko Odaki <akihiko.od...@daynix.com> --- Akihiko Odaki (6): qdev-properties: Add DEFINE_PROP_ON_OFF_AUTO_BIT64() net/vhost-vdpa: Report hashing capability virtio-net: Move virtio_net_get_features() down virtio-net: Retrieve peer hashing capability net/vhost-vdpa: Remove dummy SetSteeringEBPF virtio-net: Add hash type options include/hw/qdev-properties.h | 18 +++ include/hw/virtio/virtio-net.h | 6 +- include/net/net.h | 3 + hw/core/qdev-properties.c | 67 ++++++++++- hw/net/virtio-net.c | 254 +++++++++++++++++++++++++++-------------- net/net.c | 9 ++ net/vhost-vdpa.c | 34 ++++-- 7 files changed, 298 insertions(+), 93 deletions(-) --- base-commit: 5f90d272553ca0d18ac2457a993febdba9e840e3 change-id: 20250530-vdpa-2c481c64ce45 Best regards, -- Akihiko Odaki <akihiko.od...@daynix.com>