node: choose vector path at runtime
authorCiara Power <ciara.power@intel.com>
Mon, 19 Oct 2020 13:48:57 +0000 (15:48 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 19 Oct 2020 14:45:02 +0000 (16:45 +0200)
commit13facf47d63bf298f143cb14036e86d084f8826a
tree4268ccf963a48efa180d992d07f545f97cf17e80
parent209fd1984abbe30983d7a7482fb6dd4cfdc0fbec
node: choose vector path at runtime

When choosing the vector path, max SIMD bitwidth is now checked to
ensure the vector path is suitable. To do this, the scalar function is
chosen by default in the struct, but at node initialisation time, this
function pointer is updated to the vector version if supported, and
if it is within the max SIMD bitwidth limit.

Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
lib/librte_node/ip4_lookup.c
lib/librte_node/ip4_lookup_neon.h
lib/librte_node/ip4_lookup_sse.h