diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2015-05-29 02:08:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-31 09:23:03 +0200 |
commit | 5defde5946676ee23cd6a9d0e1de899410f4a33f (patch) | |
tree | 673fb2e8679129edfae28a0dd6b3b3001507a992 /drivers/net/hyperv | |
parent | hv_netvsc: Allocate the receive buffer from the correct NUMA node (diff) | |
download | linux-5defde5946676ee23cd6a9d0e1de899410f4a33f.tar.xz linux-5defde5946676ee23cd6a9d0e1de899410f4a33f.zip |
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/hyperv')
-rw-r--r-- | drivers/net/hyperv/netvsc.c | 4 |
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) /* Now setup the send buffer. */ - net_device->send_buf = vzalloc(net_device->send_buf_size); + net_device->send_buf = vzalloc_node(net_device->send_buf_size, node); + if (!net_device->send_buf) + 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); |