efd: allow more CPU sockets in table creation
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 28 Sep 2021 13:58:39 +0000 (13:58 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 1 Oct 2021 14:33:20 +0000 (16:33 +0200)
commit8751a7e9832b2908d28aae4f1bac9babe4f9ded1
tree04e1f097a573a4387f16483029106a97b3503375
parent4ad8807cfc9b66a90b46682e3eafb493a42a15b2
efd: allow more CPU sockets in table creation

rte_efd_create() function was using uint8_t for a socket bitmask,
for one of its parameters.
This limits the maximum of NUMA sockets to be 8.
Changing to uint64_t increases it to 64, which should be
more future-proof.

Coverity issue: 366390
Fixes: 56b6ef874f8 ("efd: new Elastic Flow Distributor library")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
Tested-by: David Christensen <drc@linux.vnet.ibm.com>
app/test/test_efd.c
app/test/test_efd_perf.c
lib/efd/rte_efd.c
lib/efd/rte_efd.h