Runtime checks for vectorized datapath are organized into device
configuration function. Remove duplicated check in device init
function.
Signed-off-by: Marvin Liu <yong.liu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
PMD_DRV_LOG(INFO,
"building environment do not support packed ring vectorized");
#else
- if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512F)) {
- hw->use_vec_rx = 1;
- hw->use_vec_tx = 1;
- }
+ hw->use_vec_rx = 1;
+ hw->use_vec_tx = 1;
#endif
}
}