[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 7/7] virtio-net: Increase filter and control lim
From: |
Michael S. Tsirkin |
Subject: |
Re: [Qemu-devel] [PATCH 7/7] virtio-net: Increase filter and control limits |
Date: |
Sat, 6 Jun 2009 23:44:40 +0300 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Fri, Jun 05, 2009 at 02:47:23PM -0600, Alex Williamson wrote:
> 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.
Just curious - which guest is that?
> 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 <address@hidden>
> ---
>
> 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,
>
>
--
MST
- [Qemu-devel] Re: [PATCH 6/7] virtio-net: Add new RX filter controls, (continued)
- [Qemu-devel] Re: [PATCH 6/7] virtio-net: Add new RX filter controls, Michael S. Tsirkin, 2009/06/10
- [Qemu-devel] Re: [PATCH 6/7] virtio-net: Add new RX filter controls, Jan Kiszka, 2009/06/10
- [Qemu-devel] Re: [PATCH 6/7] virtio-net: Add new RX filter controls, Michael S. Tsirkin, 2009/06/10
- Re: [Qemu-devel] Re: [PATCH 6/7] virtio-net: Add new RX filter controls, Gleb Natapov, 2009/06/10
- Re: [Qemu-devel] Re: [PATCH 6/7] virtio-net: Add new RX filter controls, Michael S. Tsirkin, 2009/06/10
- Re: [Qemu-devel] Re: [PATCH 6/7] virtio-net: Add new RX filter controls, Gleb Natapov, 2009/06/10
- Re: [Qemu-devel] Re: [PATCH 6/7] virtio-net: Add new RX filter controls, Michael S. Tsirkin, 2009/06/10
- Re: [Qemu-devel] [PATCH 6/7] virtio-net: Add new RX filter controls, Alex Williamson, 2009/06/08
[Qemu-devel] [PATCH 5/7] virtio-net: MAC filter optimization, Alex Williamson, 2009/06/05
[Qemu-devel] [PATCH 7/7] virtio-net: Increase filter and control limits, Alex Williamson, 2009/06/05
- Re: [Qemu-devel] [PATCH 7/7] virtio-net: Increase filter and control limits,
Michael S. Tsirkin <=
Re: [Qemu-devel] [PATCH 0/7] virtio-net: Filter cleanup/improvements, Mark McLoughlin, 2009/06/09