[PATCH v2 1/5] net/intel: add AVX512DQ flag to AVX-512 checks

Ciara Loftus ciara.loftus at intel.com
Wed Sep 17 11:17:27 CEST 2025


Add a check for the AVX512DQ cpu flag to the x86 vector capability
function. This flag is required by the idpf and cpfl drivers which will
soon use this function during their rx path selection process.

Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
---
 drivers/net/intel/common/rx_vec_x86.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/intel/common/rx_vec_x86.h b/drivers/net/intel/common/rx_vec_x86.h
index 32dd5ce189..6a11b7f568 100644
--- a/drivers/net/intel/common/rx_vec_x86.h
+++ b/drivers/net/intel/common/rx_vec_x86.h
@@ -359,7 +359,8 @@ ci_get_x86_max_simd_bitwidth(void)
 	int simd = X86_MAX_SIMD_BITWIDTH;
 
 	if (simd >= 512 && rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512F) == 1 &&
-			rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512BW) == 1)
+			rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512BW) == 1 &&
+			rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512DQ) == 1)
 		ret = RTE_VECT_SIMD_512;
 	else if (simd >= 256 && (rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX2) == 1))
 		ret = RTE_VECT_SIMD_256;
-- 
2.34.1



More information about the dev mailing list