Drivers: net-next: hyperv: Adjust the size of sendbuf region to support ws2008r2
Subsystems (3)
PATCH 1/1 Drivers: net-next: hyperv: Adjust the size of sendbuf region to support ws2008r2
WS2008R2 is a supported platform and it turns out that the maximum sendbuf size that ws2008R2 can support is only 15MB. Make the necessary adjustment.
--- drivers/net/hyperv/hyperv_net.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/hyperv/hyperv_net.h +1 -1
@@ -584,7 +584,7 @@ struct nvsp_message {#define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024*16)/* 16MB */ #define NETVSC_RECEIVE_BUFFER_SIZE_LEGACY (1024*1024*15)/* 15MB */ -#define NETVSC_SEND_BUFFER_SIZE (1024 * 1024 * 16)/* 16MB */ +#define NETVSC_SEND_BUFFER_SIZE (1024 * 1024 * 15)/* 15MB */ #define NETVSC_INVALID_INDEX -1
Signature · 1 line
1.7.4.1
Quoted 1 line
WS2008R2 is a supported platform and it turns out that the maximum
sendbuf
Review
Quoted 9 lines
size that ws2008R2 can support is only 15MB. Make the necessary adjustment.
Signed-off-by K. Y. Srinivasan <[email protected]>--- drivers/net/hyperv/hyperv_net.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)(quoted diff) +0
-0
b/drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/hyperv_net.h struct nvsp_message { · line 587
Quoted 8 lines
index 40ba1ef..459b823 100644
drivers/net/hyperv/hyperv_net.h +0
-0@@ -584,7 +584,7 @@ struct nvsp_message {#define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024*16)/* 16MB */ #define NETVSC_RECEIVE_BUFFER_SIZE_LEGACY (1024*1024*15)/* 15MB
*/
drivers/net/hyperv/hyperv_net.h struct nvsp_message { · line 588
Quoted 1 line
drivers/net/hyperv/hyperv_net.h +0
-1-#define NETVSC_SEND_BUFFER_SIZE (1024 * 1024 *
16) /* 16MB */
drivers/net/hyperv/hyperv_net.h struct nvsp_message { · line 588
Quoted 1 line
drivers/net/hyperv/hyperv_net.h +1
-0+#define NETVSC_SEND_BUFFER_SIZE (1024 * 1024 *
15) /* 15MB */
Would it be possible to use separate ifdefs depending on the version of the Hyper-V host so we can maintain the 16MB buffer for hosts that support it and leave it at 15MB for hosts that don't support that large of a buffer?
Quoted 8 lines
drivers/net/hyperv/hyperv_net.h +0
-1#define NETVSC_INVALID_INDEX -1 --1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe
linux-kernel" in
Quoted 3 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 34 lines
-----Original Message-----
From: Jeff Leung [mailto:[email protected]]
Sent: Wednesday, August 6, 2014 10:19 AM
To: KY Srinivasan; [email protected]; [email protected]; linux- [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: RE: [PATCH 1/1] Drivers: net-next: hyperv: Adjust the size of sendbuf region to support ws2008r2Quoted 1 line
WS2008R2 is a supported platform and it turns out that the maximum
sendbuf
Review
Quoted 9 lines
size that ws2008R2 can support is only 15MB. Make the necessary adjustment.
Signed-off-by K. Y. Srinivasan <[email protected]>--- drivers/net/hyperv/hyperv_net.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)(quoted diff) +0
-0
b/drivers/net/hyperv/hyperv_net.hdrivers/net/hyperv/hyperv_net.h struct nvsp_message { · line 585
Quoted 6 lines
index 40ba1ef..459b823 100644
drivers/net/hyperv/hyperv_net.h +0
-0@@ -584,7 +584,7 @@ struct nvsp_message {#define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024*16)/* 16MBdrivers/net/hyperv/hyperv_net.h struct nvsp_message { · line 587
Quoted 2 lines
drivers/net/hyperv/hyperv_net.h +0
-0*/ #define NETVSC_RECEIVE_BUFFER_SIZE_LEGACY (1024*1024*15)/* 15MB
*/
Quoted 8 lines
drivers/net/hyperv/hyperv_net.h struct nvsp_message { · line 588
Quoted 1 line
drivers/net/hyperv/hyperv_net.h +0
-1-#define NETVSC_SEND_BUFFER_SIZE (1024 * 1024 *16) /* 16MB */
drivers/net/hyperv/hyperv_net.h struct nvsp_message { · line 588
Quoted 1 line
drivers/net/hyperv/hyperv_net.h +1
-0+#define NETVSC_SEND_BUFFER_SIZE (1024 * 1024 *15) /* 15MB */
Would it be possible to use separate ifdefs depending on the version of the Hyper-V host so we can maintain the 16MB buffer for hosts that support it and leave it at 15MB for hosts that don't support that large of a buffer?
We could certainly do that. For the receive buffers, we actually size them based on the host. For sendbuf, the performance difference between 15M and 16M is not measurable. I had initially chosen 16MB to match with the receive buffer size. Since there was no perf advantage, I chose to set the sendbuf size to 15M to work on all supported hosts.
K. Y
Quoted 14 lines
Quoted 9 lines
drivers/net/hyperv/hyperv_net.h +0
-1#define NETVSC_INVALID_INDEX -1 --1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribelinux-kernel" in
Quoted 1 line
the body of a message to [email protected] More majordomo
info
Quoted 2 lines
at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: "K. Y. Srinivasan" <[email protected]>
Date: Wed, 6 Aug 2014 11:11:00 -0700
Quoted 5 lines
WS2008R2 is a supported platform and it turns out that the maximum sendbuf size that ws2008R2 can support is only 15MB. Make the necessary adjustment.
Signed-off-by K. Y. Srinivasan <[email protected]>
Applied, thanks.