From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark McLoughlin Subject: [PATCH 2/9] kvm: qemu: Fix virtio_net tx timer Date: Thu, 24 Jul 2008 12:46:12 +0100 Message-ID: <1216899979-32532-3-git-send-email-markmc@redhat.com> References: <1216899979-32532-1-git-send-email-markmc@redhat.com> <1216899979-32532-2-git-send-email-markmc@redhat.com> Cc: Herbert Xu , Rusty Russell , Mark McLoughlin To: kvm@vger.kernel.org Return-path: Received: from mail25.svc.cra.dublin.eircom.net ([159.134.118.54]:46487 "HELO mail25.svc.cra.dublin.eircom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752617AbYGXLxN (ORCPT ); Thu, 24 Jul 2008 07:53:13 -0400 In-Reply-To: <1216899979-32532-2-git-send-email-markmc@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: The current virtio_net tx timer is 2ns, which doesn't make any sense. Set it to a more reasonable 150us instead. Signed-off-by: Mark McLoughlin --- qemu/hw/virtio-net.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu/hw/virtio-net.c b/qemu/hw/virtio-net.c index 2e57e5a..31867f1 100644 --- a/qemu/hw/virtio-net.c +++ b/qemu/hw/virtio-net.c @@ -26,7 +26,7 @@ #define VIRTIO_NET_F_MAC 5 #define VIRTIO_NET_F_GS0 6 -#define TX_TIMER_INTERVAL (1000 / 500) +#define TX_TIMER_INTERVAL (150000) /* 150 us */ /* The config defining mac address (6 bytes) */ struct virtio_net_config -- 1.5.4.1