net/virtio: remove SSE check
authorOlivier Matz <olivier.matz@6wind.com>
Thu, 7 Sep 2017 12:13:45 +0000 (14:13 +0200)
committerYuanhan Liu <yliu@fridaylinux.org>
Tue, 10 Oct 2017 13:51:04 +0000 (15:51 +0200)
Since commit f27769f796a0 ("mk: require SSE4.2 support on all x86
platforms"), SSE4.2 is a requirement when compiling on x86 platforms.

We can remove this check in the virtio driver.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
drivers/net/virtio/virtio_ethdev.c

index d907b43..f310c97 100644 (file)
@@ -1744,10 +1744,7 @@ virtio_dev_configure(struct rte_eth_dev *dev)
 
        hw->use_simple_rxtx = 1;
 
-#if defined RTE_ARCH_X86
-       if (!rte_cpu_get_flag_enabled(RTE_CPUFLAG_SSE3))
-               hw->use_simple_rxtx = 0;
-#elif defined RTE_ARCH_ARM64 || defined CONFIG_RTE_ARCH_ARM
+#if defined RTE_ARCH_ARM64 || defined CONFIG_RTE_ARCH_ARM
        if (!rte_cpu_get_flag_enabled(RTE_CPUFLAG_NEON))
                hw->use_simple_rxtx = 0;
 #endif