mirror of https://gitee.com/openkylin/qemu.git
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))) {
|
||||
features &= ~(1 << VIRTIO_RING_F_INDIRECT_DESC);
|
||||
}
|
||||
features &= ~(1 << VIRTIO_NET_F_MRG_RXBUF);
|
||||
return features;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue