vhost-net: disable mergeable buffers
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 4 Apr 2010 14:36:55 +0000 (17:36 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 11 Apr 2010 17:15:55 +0000 (20:15 +0300)
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>
hw/vhost_net.c

index 39643f1..2e292ee 100644 (file)
@@ -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;
 }