Re: [Qemu-devel] [PATCH 1/5] virtio-net: Make tx_timer timeout configurable

2010-08-31 Thread Chris Wright
* Alex Williamson (alex.william...@redhat.com) wrote: > On Tue, 2010-08-31 at 11:00 -0700, Chris Wright wrote: > > * Alex Williamson (alex.william...@redhat.com) wrote: > > > diff --git a/hw/virtio-net.c b/hw/virtio-net.c > > > index 075f72d..9ef29f0 100644 > > > --- a/hw/virtio-net.c > > > +++ b/h

Re: [Qemu-devel] [PATCH 1/5] virtio-net: Make tx_timer timeout configurable

2010-08-31 Thread Alex Williamson
On Tue, 2010-08-31 at 11:00 -0700, Chris Wright wrote: > * Alex Williamson (alex.william...@redhat.com) wrote: > > diff --git a/hw/virtio-net.c b/hw/virtio-net.c > > index 075f72d..9ef29f0 100644 > > --- a/hw/virtio-net.c > > +++ b/hw/virtio-net.c > > @@ -36,6 +36,7 @@ typedef struct VirtIONet > >

Re: [Qemu-devel] [PATCH 1/5] virtio-net: Make tx_timer timeout configurable

2010-08-31 Thread Chris Wright
* Alex Williamson (alex.william...@redhat.com) wrote: > diff --git a/hw/virtio-net.c b/hw/virtio-net.c > index 075f72d..9ef29f0 100644 > --- a/hw/virtio-net.c > +++ b/hw/virtio-net.c > @@ -36,6 +36,7 @@ typedef struct VirtIONet > VirtQueue *ctrl_vq; > NICState *nic; > QEMUTimer *tx_t

[Qemu-devel] [PATCH 1/5] virtio-net: Make tx_timer timeout configurable

2010-08-27 Thread Alex Williamson
The tx_timer used for TX mitigation in virtio-net has a hard coded timeout. Make an option for this to be configurable using a txtimer= device config option. Note that we reserve a value of "1" to simply mean use the default, we'll later use the value "0" to disable the timer. Everything else is