mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
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>
This commit is contained in:
parent
0a726c2b49
commit
5defde5946
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue