examples/skeleton: fix NUMA check of port and core
authorMin Hu (Connor) <humin29@huawei.com>
Thu, 29 Apr 2021 00:50:48 +0000 (08:50 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 12 May 2021 19:46:05 +0000 (21:46 +0200)
commit5ffa60cd77c76855690d06cb900d6670f29de9a6
treed40da94b6238bfa54286ba36faedf0198ab0430a
parent59a50c6a9ace0dc736d71e75267a1cc2127e7938
examples/skeleton: fix NUMA check of port and core

According to the comments and logging, the author just hope user to use
the core and device which are in the same numa node for optimal
performance. If not, A warning gives out.

This patch fixes the check for a device on the node 0.

Fixes: 7107e471a6c7 ("examples/skeleton: very simple code for packet forwarding")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
examples/skeleton/basicfwd.c