aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv
diff options
context:
space:
mode:
authorHank Janssen <hjanssen@microsoft.com>2010-10-12 10:45:23 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-12 10:50:41 -0700
commit99c8da0f4f4f1d14a8cd42b29dfa5625a1491662 (patch)
treeed033028b59fcf65a5f99ea13a0259892dde5f10 /drivers/staging/hv
parentstaging: ft1000: get rid of typedef usage. (diff)
downloadlinux-dev-99c8da0f4f4f1d14a8cd42b29dfa5625a1491662.tar.xz
linux-dev-99c8da0f4f4f1d14a8cd42b29dfa5625a1491662.zip
staging: hv: Doubled ringbuffer size for Hyper-v network driver
Double the default network ringsize buffer for Hyper-V network driver. In very heavily loaded systems the there is a chance you run out of ringbuffer space and error out. Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv')
-rw-r--r--drivers/staging/hv/netvsc_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c
index 56e11575c977..45e082a8f6b3 100644
--- a/drivers/staging/hv/netvsc_drv.c
+++ b/drivers/staging/hv/netvsc_drv.c
@@ -59,7 +59,7 @@ struct netvsc_driver_context {
/* Need this many pages to handle worst case fragmented packet */
#define PACKET_PAGES_HIWATER (MAX_SKB_FRAGS + 2)
-static int ring_size = roundup_pow_of_two(2*MAX_SKB_FRAGS+1);
+static int ring_size = 128;
module_param(ring_size, int, S_IRUGO);
MODULE_PARM_DESC(ring_size, "Ring buffer size (# of pages)");