examples/l2fwd-cat: fix NUMA check of port and core
authorMin Hu (Connor) <humin29@huawei.com>
Thu, 29 Apr 2021 00:50:47 +0000 (08:50 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 12 May 2021 19:46:05 +0000 (21:46 +0200)
commit59a50c6a9ace0dc736d71e75267a1cc2127e7938
tree5aabc839eb78b162911314c8fbacd298a7c4e062
parent78a5545ef92b48553be4a244514a2514ca9b09b0
examples/l2fwd-cat: 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: f6baccbc2b3b ("examples/l2fwd-cat: add sample application for PQoS CAT and CDP")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
examples/l2fwd-cat/l2fwd-cat.c