examples/ethtool: enhance Rx/Tx queue NUMA affinity
authorChengwen Feng <fengchengwen@huawei.com>
Thu, 6 May 2021 03:46:07 +0000 (11:46 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 17 Nov 2021 17:43:21 +0000 (18:43 +0100)
commit4199ce15789fdad0a3b835d1c93abc6b63227914
tree83c1e4ac80741681028f90d07684f98eacaa2a83
parent9da077adb34630d388e0ededdd7ce4214d764284
examples/ethtool: enhance Rx/Tx queue NUMA affinity

In DPDK, 'rte_socket_id' means the running socket while
'rte_eth_dev_socket_id' is the device socket.
For better performance, memory which queue setup used and device
should be in the same socket.

This patch make sure it calls rte_eth_dev_socket_id API to get device
socket_id when setting ringparam.

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
examples/ethtool/lib/rte_ethtool.c