virtio-net: Make tx_timer timeout configurable
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 2 Sep 2010 15:00:50 +0000 (09:00 -0600)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Sep 2010 17:29:24 +0000 (20:29 +0300)
commit3d2e6bf3344c723acecd4d28f4477a66e1ed69d9
tree189a2c3e3a0a4877cf5e18c9e5968443eb3482c9
parentd094221787700e7e4b81a8387b448bd07ecd018e
virtio-net: Make tx_timer timeout configurable

Add an option to make the TX mitigation timer adjustable as a device
option.  The 150us hard coded default used currently is reasonable,
but may not be suitable for all workloads, this gives us a way to
adjust it using a single binary.  We can't support any random option
though, so use the "x-" prefix to indicate this is a developer
option.  Usage:

-device virtio-net-pci,x-txtimer=500000,... # .5ms timeout

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/s390-virtio-bus.c
hw/s390-virtio-bus.h
hw/syborg_virtio.c
hw/virtio-net.c
hw/virtio-net.h
hw/virtio-pci.c
hw/virtio.h