From fcfb551f02722f0ca43181555fa8a2fc5972b2f2 Mon Sep 17 00:00:00 2001 From: Liu Long Date: Mon, 20 Jun 2022 09:49:17 +0800 Subject: [PATCH] ACRN:DM: Correct vhost_ext_features network bit Use the VHOST_NET_F_VIRTIO_NET_HDR in linux system header file, and set the correct feature bit for Virtio net header. Tracked-On: #7790 Signed-off-by: Liu Long --- devicemodel/hw/pci/virtio/virtio_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemodel/hw/pci/virtio/virtio_net.c b/devicemodel/hw/pci/virtio/virtio_net.c index 39aee41cb..89f04b210 100644 --- a/devicemodel/hw/pci/virtio/virtio_net.c +++ b/devicemodel/hw/pci/virtio/virtio_net.c @@ -1172,7 +1172,7 @@ vhost_net_init(struct virtio_base *base, int vhostfd, int tapfd, int vq_idx) { struct vhost_net *vhost_net = NULL; uint64_t vhost_features = VIRTIO_NET_S_VHOSTCAPS; - uint64_t vhost_ext_features = VHOST_NET_F_VIRTIO_NET_HDR; + uint64_t vhost_ext_features = 1 << VHOST_NET_F_VIRTIO_NET_HDR; uint32_t busyloop_timeout = 0; int rc;