From e49247b9da6118b00b68194979e4667ef3a7e634 Mon Sep 17 00:00:00 2001 From: Marvin Liu Date: Tue, 12 May 2020 21:18:06 +0800 Subject: [PATCH] net/virtio: remove duplicated AVX512 check Runtime checks for vectorized datapath are organized into device configuration function. Remove duplicated check in device init function. Signed-off-by: Marvin Liu Reviewed-by: Maxime Coquelin --- drivers/net/virtio/virtio_ethdev.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 49ccef12c7..312871cb48 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -1965,10 +1965,8 @@ eth_virtio_dev_init(struct rte_eth_dev *eth_dev) 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 } } -- 2.20.1