crypto/snow3g: remove check for SSE4
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 20 Jun 2017 15:23:06 +0000 (16:23 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 4 Jul 2017 12:39:18 +0000 (14:39 +0200)
Since SSE4 is now part of the minimum requirements for DPDK, we don't need
to check for its presence any more.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
drivers/crypto/snow3g/rte_snow3g_pmd.c

index 8945f19..7151c21 100644 (file)
@@ -549,20 +549,12 @@ cryptodev_snow3g_create(const char *name,
 {
        struct rte_cryptodev *dev;
        struct snow3g_private *internals;
-       uint64_t cpu_flags = 0;
+       uint64_t cpu_flags = RTE_CRYPTODEV_FF_CPU_SSE;
 
        if (init_params->name[0] == '\0')
                snprintf(init_params->name, sizeof(init_params->name),
                                "%s", name);
 
-       /* Check CPU for supported vector instruction set */
-       if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_SSE4_1))
-               cpu_flags |= RTE_CRYPTODEV_FF_CPU_SSE;
-       else {
-               SNOW3G_LOG_ERR("Vector instructions are not supported by CPU");
-               return -EFAULT;
-       }
-
        dev = rte_cryptodev_vdev_pmd_init(init_params->name,
                        sizeof(struct snow3g_private), init_params->socket_id,
                        vdev);