From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MCgPO-0001ve-3v for qemu-devel@nongnu.org; Fri, 05 Jun 2009 16:53:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MCgPJ-0001o4-6b for qemu-devel@nongnu.org; Fri, 05 Jun 2009 16:53:01 -0400 Received: from [199.232.76.173] (port=38248 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCgPI-0001na-Og for qemu-devel@nongnu.org; Fri, 05 Jun 2009 16:52:56 -0400 Received: from g4t0015.houston.hp.com ([15.201.24.18]:48227) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MCgPI-0005wE-8e for qemu-devel@nongnu.org; Fri, 05 Jun 2009 16:52:56 -0400 Received: from g1t0039.austin.hp.com (g1t0039.austin.hp.com [16.236.32.45]) by g4t0015.houston.hp.com (Postfix) with ESMTP id EAEC580DF for ; Fri, 5 Jun 2009 20:52:54 +0000 (UTC) From: Alex Williamson Date: Fri, 05 Jun 2009 14:47:23 -0600 Message-ID: <20090605204723.3355.1737.stgit@kvm.aw> In-Reply-To: <20090605204647.3355.81929.stgit@kvm.aw> References: <20090605204647.3355.81929.stgit@kvm.aw> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 7/7] virtio-net: Increase filter and control limits List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: alex.williamson@hp.com Increase the size of the perfect filter table and control queue depth. This should give us more headroom in the MAC filter and is known to be needed by at least one guest user. Increasing the control queue depth allows a guest to feed several commands back to back if they so desire rather than using the send and wait approach Linux uses. Signed-off-by: Alex Williamson --- hw/virtio-net.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/virtio-net.c b/hw/virtio-net.c index ecb58de..efaff04 100644 --- a/hw/virtio-net.c +++ b/hw/virtio-net.c @@ -18,7 +18,7 @@ #define VIRTIO_NET_VM_VERSION 10 -#define MAC_TABLE_ENTRIES 32 +#define MAC_TABLE_ENTRIES 64 #define MAX_VLAN (1 << 12) /* Per 802.1Q definition */ typedef struct VirtIONet @@ -685,7 +685,7 @@ VirtIODevice *virtio_net_init(DeviceState *dev) n->vdev.reset = virtio_net_reset; 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); - n->ctrl_vq = virtio_add_queue(&n->vdev, 16, virtio_net_handle_ctrl); + n->ctrl_vq = virtio_add_queue(&n->vdev, 64, virtio_net_handle_ctrl); qdev_get_macaddr(dev, n->mac); n->status = VIRTIO_NET_S_LINK_UP; n->vc = qdev_get_vlan_client(dev,