diff mbox series

[1/3] vhost-net: add VIRTIO_NET_F_HASH_REPORT to the list of kernel features

Message ID 20210204202915.15925-2-yuri.benditovich@daynix.com (mailing list archive)
State New, archived
Headers show
Series virtio-net: graceful drop of vhost for TAP | expand

Commit Message

Yuri Benditovich Feb. 4, 2021, 8:29 p.m. UTC
In case of vhost TAP the kernel must support this feature,
otherwise the device can't offer it.

Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
---
 hw/net/vhost_net.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c
index 24d555e764..8282e440bd 100644
--- a/hw/net/vhost_net.c
+++ b/hw/net/vhost_net.c
@@ -45,6 +45,7 @@  static const int kernel_feature_bits[] = {
     VIRTIO_NET_F_MTU,
     VIRTIO_F_IOMMU_PLATFORM,
     VIRTIO_F_RING_PACKED,
+    VIRTIO_NET_F_HASH_REPORT,
     VHOST_INVALID_FEATURE_BIT
 };