From: Mark McLoughlin Date: Thu, 18 Jun 2009 10:31:07 +0000 (+0100) Subject: virtio-net: enable mergeable receive buffers X-Git-Tag: TizenStudio_2.0_p2.3~8607 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=335ffcab2de3db57634a9fafc4873358ac75e8a4;p=sdk%2Femulator%2Fqemu.git virtio-net: enable mergeable receive buffers When virtio-net was merged in from qemu-kvm.git, the VNET_HDR related features were dropped from the code. However, VIRTIO_NET_F_MRG_RXBUF appears to have accidentally been dropped too. Re-instate that now. Reported-by: Michael S. Tsirkin Signed-off-by: Mark McLoughlin Signed-off-by: Anthony Liguori --- diff --git a/hw/virtio-net.c b/hw/virtio-net.c index d584287..e1efbbe 100644 --- a/hw/virtio-net.c +++ b/hw/virtio-net.c @@ -119,6 +119,7 @@ static void virtio_net_reset(VirtIODevice *vdev) static uint32_t virtio_net_get_features(VirtIODevice *vdev) { uint32_t features = (1 << VIRTIO_NET_F_MAC) | + (1 << VIRTIO_NET_F_MRG_RXBUF) | (1 << VIRTIO_NET_F_STATUS) | (1 << VIRTIO_NET_F_CTRL_VQ) | (1 << VIRTIO_NET_F_CTRL_RX) |