From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark McLoughlin Subject: [PATCH 2/3] virtio_net: Make use of napi_weight module param Date: Wed, 22 Oct 2008 16:20:29 +0100 Message-ID: <1224688830-26216-3-git-send-email-markmc@redhat.com> References: <> <1224688830-26216-1-git-send-email-markmc@redhat.com> <1224688830-26216-2-git-send-email-markmc@redhat.com> Cc: kvm@vger.kernel.org, Mark McLoughlin , Anthony Liguori To: Avi Kivity Return-path: Received: from mail23.svc.cra.dublin.eircom.net ([159.134.118.145]:40277 "HELO mail23.svc.cra.dublin.eircom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752446AbYJVPWR (ORCPT ); Wed, 22 Oct 2008 11:22:17 -0400 In-Reply-To: <1224688830-26216-2-git-send-email-markmc@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Currently, the napi_weight module param is ignored and we hardcode the weight to 16 since this commit: commit 85a8b9da078977c6198d434837c7d077669c9c54 Author: Anthony Liguori Date: Sun Jan 6 21:37:01 2008 -0600 Make sure to set weight to 16 always. Signed-off-by: Anthony Liguori Allowing the weight to be higher should reduce the interrupt rate in the guest. In practice, though, it doesn't appear to make much difference. Signed-off-by: Mark McLoughlin Cc: Anthony Liguori --- external-module-compat.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/external-module-compat.h b/external-module-compat.h index 4da2296..fc20bc9 100644 --- a/external-module-compat.h +++ b/external-module-compat.h @@ -65,7 +65,7 @@ struct napi_struct { #define netif_napi_add(dev, napi, pollfn, weightval) \ do { \ (dev)->poll = (pollfn); \ - (dev)->weight = 16; \ + (dev)->weight = (weightval); \ } while(0) #define netif_rx_schedule(dev, napi) netif_rx_schedule(dev) -- 1.5.5.1