summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/net/virtio_net.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/net/virtio_net.c')
-rw-r--r--kernel/drivers/net/virtio_net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/drivers/net/virtio_net.c b/kernel/drivers/net/virtio_net.c
index 63c7810e1..7fbca37a1 100644
--- a/kernel/drivers/net/virtio_net.c
+++ b/kernel/drivers/net/virtio_net.c
@@ -1828,7 +1828,8 @@ static int virtnet_probe(struct virtio_device *vdev)
else
vi->hdr_len = sizeof(struct virtio_net_hdr);
- if (virtio_has_feature(vdev, VIRTIO_F_ANY_LAYOUT))
+ if (virtio_has_feature(vdev, VIRTIO_F_ANY_LAYOUT) ||
+ virtio_has_feature(vdev, VIRTIO_F_VERSION_1))
vi->any_header_sg = true;
if (virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ))