Skip to contentSkip to conversation

virtio-net: enable mergeable receive buffers

PATCH New Mark McLoughlin 1 participant 1 message Jun 18, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 hw/virtio-net.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
hw/virtio-net.c +1 -0
index d584287..e1efbbe 100644
@@ -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) |
Signature · 1 line
1.6.0.6