summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2015-05-28 20:08:07 -0400
committerDavid S. Miller <davem@davemloft.net>2015-05-31 03:23:03 -0400
commit5defde5946676ee23cd6a9d0e1de899410f4a33f (patch)
tree673fb2e8679129edfae28a0dd6b3b3001507a992 /drivers/net
parent0a726c2b499e390b1c1fc3092bd789f2192a2d03 (diff)
hv_netvsc: Allocate the sendbuf in a NUMA aware way
Allocate the send buffer in a NUMA aware way. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/hyperv/netvsc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c
index d187965eba36..06de98a05622 100644
--- a/drivers/net/hyperv/netvsc.c
+++ b/drivers/net/hyperv/netvsc.c
@@ -326,7 +326,9 @@ static int netvsc_init_buf(struct hv_device *device)
326 326
327 /* Now setup the send buffer. 327 /* Now setup the send buffer.
328 */ 328 */
329 net_device->send_buf = vzalloc(net_device->send_buf_size); 329 net_device->send_buf = vzalloc_node(net_device->send_buf_size, node);
330 if (!net_device->send_buf)
331 net_device->send_buf = vzalloc(net_device->send_buf_size);
330 if (!net_device->send_buf) { 332 if (!net_device->send_buf) {
331 netdev_err(ndev, "unable to allocate send " 333 netdev_err(ndev, "unable to allocate send "
332 "buffer of size %d\n", net_device->send_buf_size); 334 "buffer of size %d\n", net_device->send_buf_size);