Commit e16044ef2ee8641ec72dc3476561604e68eb264f

Authored by Mark McLoughlin
Committed by Anthony Liguori
1 parent 9d5e77a2

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 <mst@redhat.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing 1 changed file with 1 additions and 0 deletions
hw/virtio-net.c
... ... @@ -119,6 +119,7 @@ static void virtio_net_reset(VirtIODevice *vdev)
119 119 static uint32_t virtio_net_get_features(VirtIODevice *vdev)
120 120 {
121 121 uint32_t features = (1 << VIRTIO_NET_F_MAC) |
  122 + (1 << VIRTIO_NET_F_MRG_RXBUF) |
122 123 (1 << VIRTIO_NET_F_STATUS) |
123 124 (1 << VIRTIO_NET_F_CTRL_VQ) |
124 125 (1 << VIRTIO_NET_F_CTRL_RX) |
... ...