[dpdk-dev] [PATCH 1/3] examples/flow_classify: fix check of port and core
Thomas Monjalon
thomas at monjalon.net
Tue Apr 20 03:08:11 CEST 2021
27/03/2021 08:40, Min Hu (Connor):
> fix check of port and core in flow_classify example.
>
> Fixes: bab16ddaf2c1 ("examples/flow_classify: add sample application")
> Cc: stable at dpdk.org
>
> Signed-off-by: Min Hu (Connor) <humin29 at huawei.com>
> ---
> RTE_ETH_FOREACH_DEV(port)
> - if (rte_eth_dev_socket_id(port) > 0 &&
> + if (rte_eth_dev_socket_id(port) >= 0 &&
> rte_eth_dev_socket_id(port) != (int)rte_socket_id()) {
> printf("\n\n");
> printf("WARNING: port %u is on remote NUMA node\n",
Please explain which case is broken and why.
If I understand well, we don't detect remote NUMA if not running on first socket.
More information about the dev
mailing list