Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Hering <ohering@suse.de>2017-10-20 12:20:33 +0200
committerOlaf Hering <ohering@suse.de>2017-10-20 12:23:29 +0200
commit324eb5ad2ba3174199e865113c6dac6e25a6c26e (patch)
treefcd2d23ffdd697a4b2e607001e79bf7de98f5190
parent22a35fa0a3083e667f0571e9355264f979a13c11 (diff)
netvsc: increase default receive buffer size (fate#323887).
-rw-r--r--patches.suse/msft-hv-1465-netvsc-increase-default-receive-buffer-size.patch32
-rw-r--r--series.conf1
2 files changed, 33 insertions, 0 deletions
diff --git a/patches.suse/msft-hv-1465-netvsc-increase-default-receive-buffer-size.patch b/patches.suse/msft-hv-1465-netvsc-increase-default-receive-buffer-size.patch
new file mode 100644
index 0000000000..ceb3205368
--- /dev/null
+++ b/patches.suse/msft-hv-1465-netvsc-increase-default-receive-buffer-size.patch
@@ -0,0 +1,32 @@
+From: Stephen Hemminger <stephen@networkplumber.org>
+Date: Thu, 14 Sep 2017 09:31:07 -0700
+Patch-mainline: v4.14-rc1
+Subject: netvsc: increase default receive buffer size
+Git-commit: 5023a6db73196695f4cc2db1a0eb37957ca27772
+References: fate#323887
+
+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>
+Acked-by: Olaf Hering <ohering@suse.de>
+---
+ drivers/net/hyperv/netvsc_drv.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
+--- 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)
diff --git a/series.conf b/series.conf
index 908ec1c782..2fd2de9988 100644
--- a/series.conf
+++ b/series.conf
@@ -1712,6 +1712,7 @@
patches.suse/msft-hv-1461-hv_netvsc-fix-deadlock-on-hotplug.patch
patches.suse/msft-hv-1462-hv_netvsc-avoid-unnecessary-wakeups-on-subchannel-cr.patch
patches.suse/msft-hv-1464-x86-hyper-v-Remove-duplicated-HV_X64_EX_PROCESSOR_MA.patch
+ patches.suse/msft-hv-1465-netvsc-increase-default-receive-buffer-size.patch
patches.suse/suse-hv-guest-os-id.patch
patches.suse/suse-hv-kvp_on_msg.dbg.patch