Currently, the napi_weight module param is ignored and
we hardcode the weight to 16 since this commit:
commit 85a8b9da078977c6198d434837c7d077669c9c54
Author: Anthony Liguori <[EMAIL PROTECTED]>
Date: Sun Jan 6 21:37:01 2008 -0600
Make sure to set weight to 16 always.
Signed-off-by: Anthony Liguori <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
Cc: Anthony Liguori <[EMAIL PROTECTED]>
---
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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html