提交 5defde59 编写于 作者: K K. Y. Srinivasan 提交者: David S. Miller

hv_netvsc: Allocate the sendbuf in a NUMA aware way

Allocate the send buffer in a NUMA aware way.
Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0a726c2b
...@@ -326,7 +326,9 @@ static int netvsc_init_buf(struct hv_device *device) ...@@ -326,7 +326,9 @@ static int netvsc_init_buf(struct hv_device *device)
/* Now setup the send buffer. /* 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) { if (!net_device->send_buf) {
netdev_err(ndev, "unable to allocate send " netdev_err(ndev, "unable to allocate send "
"buffer of size %d\n", net_device->send_buf_size); "buffer of size %d\n", net_device->send_buf_size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册