Add the CPU flag for AVX-512 vector bit manipulation instructions.

Signed-off-by: Kevin Laatz <kevin.la...@intel.com>
---
 lib/librte_eal/common/arch/x86/rte_cpuflags.c         | 1 +
 lib/librte_eal/common/include/arch/x86/rte_cpuflags.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/lib/librte_eal/common/arch/x86/rte_cpuflags.c 
b/lib/librte_eal/common/arch/x86/rte_cpuflags.c
index 21cb4b649..773b14074 100644
--- a/lib/librte_eal/common/arch/x86/rte_cpuflags.c
+++ b/lib/librte_eal/common/arch/x86/rte_cpuflags.c
@@ -126,6 +126,7 @@ const struct feature_entry rte_cpu_feature_table[] = {
        FEAT_DEF(AVX512CD, 0x00000007, 0, RTE_REG_EBX, 28)
        FEAT_DEF(AVX512BW, 0x00000007, 0, RTE_REG_EBX, 30)
        FEAT_DEF(AVX512VL, 0x00000007, 0, RTE_REG_EBX, 31)
+       FEAT_DEF(AVX512VBMI, 0x00000007, 0, RTE_REG_ECX, 1)
 };
 
 int
diff --git a/lib/librte_eal/common/include/arch/x86/rte_cpuflags.h 
b/lib/librte_eal/common/include/arch/x86/rte_cpuflags.h
index 42181e32c..453193875 100644
--- a/lib/librte_eal/common/include/arch/x86/rte_cpuflags.h
+++ b/lib/librte_eal/common/include/arch/x86/rte_cpuflags.h
@@ -118,6 +118,7 @@ enum rte_cpu_flag_t {
        RTE_CPUFLAG_AVX512CD,               /**< AVX512 Conflict Detection*/
        RTE_CPUFLAG_AVX512BW,               /**< AVX512 Byte and Word */
        RTE_CPUFLAG_AVX512VL,               /**< AVX512 Vector Length */
+       RTE_CPUFLAG_AVX512VBMI,             /**< AVX512 Vector Bit Manipulation 
*/
 
        /* The last item */
        RTE_CPUFLAG_NUMFLAGS,               /**< This should always be the 
last! */
-- 
2.17.1

Reply via email to