mirror of
https://github.com/qemu/qemu.git
synced 2025-08-08 08:05:17 +00:00
vhost-net: disable mergeable buffers
vhost in current kernels doesn't support mergeable buffers. Disable this feature if vhost is enabled, until such support is implemented. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
af4c828e70
commit
c6b35ac4c4
@ -51,6 +51,7 @@ unsigned vhost_net_get_features(struct vhost_net *net, unsigned features)
|
|||||||
if (!(net->dev.features & (1 << VIRTIO_RING_F_INDIRECT_DESC))) {
|
if (!(net->dev.features & (1 << VIRTIO_RING_F_INDIRECT_DESC))) {
|
||||||
features &= ~(1 << VIRTIO_RING_F_INDIRECT_DESC);
|
features &= ~(1 << VIRTIO_RING_F_INDIRECT_DESC);
|
||||||
}
|
}
|
||||||
|
features &= ~(1 << VIRTIO_NET_F_MRG_RXBUF);
|
||||||
return features;
|
return features;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user