From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark McLoughlin Subject: [PATCH 11/12] kvm: qemu: Increase size of virtio_net rings Date: Mon, 11 Aug 2008 21:12:14 +0100 Message-ID: <1218485535-877-12-git-send-email-markmc@redhat.com> References: <1218485535-877-1-git-send-email-markmc@redhat.com> <1218485535-877-2-git-send-email-markmc@redhat.com> <1218485535-877-3-git-send-email-markmc@redhat.com> <1218485535-877-4-git-send-email-markmc@redhat.com> <1218485535-877-5-git-send-email-markmc@redhat.com> <1218485535-877-6-git-send-email-markmc@redhat.com> <1218485535-877-7-git-send-email-markmc@redhat.com> <1218485535-877-8-git-send-email-markmc@redhat.com> <1218485535-877-9-git-send-email-markmc@redhat.com> <1218485535-877-10-git-send-email-markmc@redhat.com> <1218485535-877-11-git-send-email-markmc@redhat.com> Cc: kvm@vger.kernel.org, Mark McLoughlin To: Avi Kivity Return-path: Received: from mail11.svc.cra.dublin.eircom.net ([159.134.118.27]:33146 "HELO mail11.svc.cra.dublin.eircom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757545AbYHKUMf (ORCPT ); Mon, 11 Aug 2008 16:12:35 -0400 In-Reply-To: <1218485535-877-11-git-send-email-markmc@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: GSO packets uses up a lot more buffer entries, so double the size of the rings Signed-off-by: Mark McLoughlin --- qemu/hw/virtio-net.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qemu/hw/virtio-net.c b/qemu/hw/virtio-net.c index 2298316..61215b1 100644 --- a/qemu/hw/virtio-net.c +++ b/qemu/hw/virtio-net.c @@ -35,7 +35,7 @@ #define VIRTIO_NET_F_HOST_ECN 13 /* Host can handle TSO[6] w/ ECN in. */ #define VIRTIO_NET_F_HOST_UFO 14 /* Host can handle UFO in. */ -#define TX_TIMER_INTERVAL 250000 /* 250 us */ +#define TX_TIMER_INTERVAL 150000 /* 150 us */ /* The config defining mac address (6 bytes) */ struct virtio_net_config @@ -306,8 +306,8 @@ PCIDevice *virtio_net_init(PCIBus *bus, NICInfo *nd, int devfn) n->vdev.update_config = virtio_net_update_config; n->vdev.get_features = virtio_net_get_features; n->vdev.set_features = virtio_net_set_features; - n->rx_vq = virtio_add_queue(&n->vdev, 128, virtio_net_handle_rx); - n->tx_vq = virtio_add_queue(&n->vdev, 128, virtio_net_handle_tx); + n->rx_vq = virtio_add_queue(&n->vdev, 256, virtio_net_handle_rx); + n->tx_vq = virtio_add_queue(&n->vdev, 256, virtio_net_handle_tx); memcpy(n->mac, nd->macaddr, 6); n->vc = qemu_new_vlan_client(nd->vlan, virtio_net_receive, virtio_net_can_receive, n); -- 1.5.4.1