mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 20:32:22 +00:00
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>
This commit is contained in:
parent
13da8f0d46
commit
99c8da0f4f
@ -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)");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user