When choosing a vector path to take, an extra condition must be
satisfied to ensure the max SIMD bitwidth allows for the CPU
enabled path.
Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
#include <rte_prefetch.h>
#include <rte_random.h>
#include <rte_log.h>
+#include <rte_vect.h>
#include "rte_member.h"
#include "rte_member_ht.h"
}
#if defined(RTE_ARCH_X86)
if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX2) &&
- RTE_MEMBER_BUCKET_ENTRIES == 16)
+ RTE_MEMBER_BUCKET_ENTRIES == 16 &&
+ rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_256)
ss->sig_cmp_fn = RTE_MEMBER_COMPARE_AVX2;
else
#endif