Add the CPU flag for cache line demote 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 0b1458d77..ac1de715d 100644
--- a/lib/librte_eal/common/arch/x86/rte_cpuflags.c
+++ b/lib/librte_eal/common/arch/x86/rte_cpuflags.c
@@ -134,6 +134,7 @@ const struct feature_entry rte_cpu_feature_table[] = {
        FEAT_DEF(AVX512VNNI, 0x00000007, 0, RTE_REG_ECX, 11)
        FEAT_DEF(AVX512BITALG, 0x00000007, 0, RTE_REG_ECX, 12)
        FEAT_DEF(AVX512VPOPCNTDQ, 0x00000007, 0, RTE_REG_ECX,  14)
+       FEAT_DEF(CLDEMOTE, 0x00000007, 0, RTE_REG_ECX, 25)
 };
 
 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 63281ef5e..3a60f3e68 100644
--- a/lib/librte_eal/common/include/arch/x86/rte_cpuflags.h
+++ b/lib/librte_eal/common/include/arch/x86/rte_cpuflags.h
@@ -126,6 +126,7 @@ enum rte_cpu_flag_t {
        RTE_CPUFLAG_AVX512VNNI,             /**< AVX512 Vector Neural Network 
Instructions */
        RTE_CPUFLAG_AVX512BITALG,           /**< AVX512 Bit Algorithms */
        RTE_CPUFLAG_AVX512VPOPCNTDQ,        /**< AVX512 Vector Popcount */
+       RTE_CPUFLAG_CLDEMOTE,               /**< Cache Line Demote */
 
        /* The last item */
        RTE_CPUFLAG_NUMFLAGS,               /**< This should always be the 
last! */
-- 
2.17.1

Reply via email to