]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: replace numa_node_id with numa_mem_id for buffer reusing
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 7 Jun 2019 02:03:05 +0000 (10:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Jun 2019 20:20:58 +0000 (13:20 -0700)
commit8efffe7537ee72d3b391e8e1c68599952a0dc51b
treec4e0332a8b02977d327a2de0afdd1825b9380791
parentb574d0e2fd257494871fcbb4dff669b0aad2c517
net: hns3: replace numa_node_id with numa_mem_id for buffer reusing

This patch replaces numa_node_id with numa_mem_id when doing buffer
reusing checking, because the buffer still can be reused when the
buffer is from the nearest node and the local node has no memory
attached.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c