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)
commitd5970dc73f1c12a07f89b427799ca8b0b6c30b97
treec4e0332a8b02977d327a2de0afdd1825b9380791
parente2ee1c5a5944231a79cf6d64c2a703ea08a2e411
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