Skip to content

Commit

Permalink
hv_netvsc: Allocate the sendbuf in a NUMA aware way
Browse files Browse the repository at this point in the history
Allocate the send buffer in a NUMA aware way.

Signed-off-by: K. Y. Srinivasan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
kattisrinivasan authored and davem330 committed May 31, 2015
1 parent 0a726c2 commit 5defde5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/hyperv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5defde5

Please sign in to comment.