Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5defde59 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by David S. Miller
Browse files

hv_netvsc: Allocate the sendbuf in a NUMA aware way



Allocate the send buffer in a NUMA aware way.

Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0a726c2b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -326,6 +326,8 @@ static int netvsc_init_buf(struct hv_device *device)

	/* Now setup the send buffer.
	 */
	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 "