summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2017-09-14 09:31:07 -0700
committerDavid S. Miller <davem@davemloft.net>2017-09-15 14:41:12 -0700
commit5023a6db73196695f4cc2db1a0eb37957ca27772 (patch)
tree4c9d4bd6975ba0655e179426f061ef2ec5b9e664
parent8c72c65b426b47b3c166a8fef0d8927fe5e8a28d (diff)
downloadlinux-stable-5023a6db73196695f4cc2db1a0eb37957ca27772.tar.gz
linux-stable-5023a6db73196695f4cc2db1a0eb37957ca27772.tar.bz2
linux-stable-5023a6db73196695f4cc2db1a0eb37957ca27772.zip
netvsc: increase default receive buffer size
The default receive buffer size was reduced by recent change to a value which was appropriate for 10G and Windows Server 2016. But the value is too small for full performance with 40G on Azure. Increase the default back to maximum supported by host. Fixes: 8b5327975ae1 ("netvsc: allow controlling send/recv buffer size") Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/hyperv/netvsc_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index c538a4f15f3b..d4902ee5f260 100644
--- a/drivers/net/hyperv/netvsc_drv.c
+++ b/drivers/net/hyperv/netvsc_drv.c
@@ -49,7 +49,7 @@
#define NETVSC_MIN_TX_SECTIONS 10
#define NETVSC_DEFAULT_TX 192 /* ~1M */
#define NETVSC_MIN_RX_SECTIONS 10 /* ~64K */
-#define NETVSC_DEFAULT_RX 2048 /* ~4M */
+#define NETVSC_DEFAULT_RX 10485 /* Max ~16M */
#define LINKCHANGE_INT (2 * HZ)
#define VF_TAKEOVER_INT (HZ / 10)