Drivers: net-next: hyperv
Subsystems (3)
PATCH 1/1 Drivers: net-next: hyperv
For forwarding scenarios, it will be useful to allocate larger sendbuf. Make the necessary adjustments to permit this.
--- drivers/net/hyperv/hyperv_net.h | 2 +- drivers/net/hyperv/netvsc.c | 7 ++----- 2 files changed, 3 insertions(+), 6 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)/* 1MB */ +#define NETVSC_SEND_BUFFER_SIZE (1024 * 1024 * 16)/* 16MB */ #define NETVSC_INVALID_INDEX -1
drivers/net/hyperv/netvsc.c +2 -5
@@ -193,8 +193,7 @@ static int netvsc_destroy_buf(struct netvsc_device *net_device) }if (net_device->send_buf) {/* Free up the receive buffer */ -free_pages ((unsigned long )net_device->send_buf, -get_order (net_device->send_buf_size)); +vfree (net_device->send_buf); net_device->send_buf =NULL ; }kfree (net_device->send_section_map);
@@ -303,9 +302,7 @@ static int netvsc_init_buf(struct hv_device *device)/* Now setup the send buffer. */ - net_device->send_buf = - (void *)__get_free_pages (GFP_KERNEL |__GFP_ZERO, -get_order (net_device->send_buf_size)); + net_device->send_buf =vzalloc (net_device->send_buf_size);if (!net_device->send_buf) {netdev_err (ndev,"unable to allocate send " "buffer of size %d\n" , net_device->send_buf_size);
Signature · 1 line
1.7.4.1
David Miller
maintainerFrom: "K. Y. Srinivasan" <[email protected]>
Date: Wed, 30 Jul 2014 18:20:16 -0700
Quoted 4 lines
For forwarding scenarios, it will be useful to allocate larger sendbuf. Make the necessary adjustments to permit this.
Signed-off-by K. Y. Srinivasan <[email protected]>
Please submit this with a proper Subject line, something like "[PATCH 1/1] hyperv: ${DESCRIPTION}" would be fine.
As is, nobody scanning the commit headers in the tree history can see what might be unique about this change to the hyperv driver vs. all others, because you haven't written a proper description.
Quoted 17 lines
-----Original Message-----
From: David Miller [mailto:[email protected]]
Sent: Wednesday, July 30, 2014 5:25 PM
To: KY Srinivasan
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] Drivers: net-next: hypervFrom: "K. Y. Srinivasan" <[email protected]>
Date: Wed, 30 Jul 2014 18:20:16 -0700Quoted 3 lines
For forwarding scenarios, it will be useful to allocate larger sendbuf. Make the necessary adjustments to permit this.
Quoted 8 lines
Quoted 1 line
Signed-off-by K. Y. Srinivasan <[email protected]>Please submit this with a proper Subject line, something like "[PATCH 1/1]
hyperv: ${DESCRIPTION}" would be fine.As is, nobody scanning the commit headers in the tree history can see what might be unique about this change to the hyperv driver vs. all others, because you haven't written a proper description.
Oops; sorry about that. I will resend this.
K. Y