net/virtio: remove duplicated AVX512 check
authorMarvin Liu <yong.liu@intel.com>
Tue, 12 May 2020 13:18:06 +0000 (21:18 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 18 May 2020 18:35:57 +0000 (20:35 +0200)
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>
drivers/net/virtio/virtio_ethdev.c

index 49ccef1..312871c 100644 (file)
@@ -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
                }
        }