From 1cebf98e1cdc99e215d30dadd5570ba836b1a6d9 Mon Sep 17 00:00:00 2001 From: Ray Kinsella Date: Thu, 14 Jan 2021 16:37:37 +0000 Subject: dpdk: enable AVX-512 on ICL Enable DPDK AVX-512 Vector PMDs on Intel Icelake Type: improvement Signed-off-by: Ray Kinsella Signed-off-by: Radu Nicolau Change-Id: Ie5d5bf54ccaa65c1d053d56a2f2973fe8625193b --- src/plugins/dpdk/device/init.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c index 19d664a5778..2874167665f 100644 --- a/src/plugins/dpdk/device/init.c +++ b/src/plugins/dpdk/device/init.c @@ -30,6 +30,7 @@ #include #include +#include #include #include @@ -1678,6 +1679,10 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input) ret = rte_eal_init (vec_len (conf->eal_init_args), (char **) conf->eal_init_args); + /* enable the AVX-512 vPMDs in DPDK */ + if (clib_cpu_supports_avx512_bitalg ()) + rte_vect_set_max_simd_bitwidth (RTE_VECT_SIMD_512); + /* lazy umount hugepages */ umount2 ((char *) huge_dir_path, MNT_DETACH); rmdir ((char *) huge_dir_path); -- cgit 1.2.3-korg