From: Bruce Richardson Date: Tue, 20 Jun 2017 15:23:04 +0000 (+0100) Subject: crypto/aesni_mb: remove check for SSE4 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6a86c3477f79d7d738086b40f16590c49d5f617e;p=dpdk.git crypto/aesni_mb: remove check for SSE4 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 Acked-by: Declan Doherty Acked-by: Konstantin Ananyev --- diff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c index f9a7d5ba34..a033889191 100644 --- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c +++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c @@ -688,12 +688,8 @@ cryptodev_aesni_mb_create(const char *name, vector_mode = RTE_AESNI_MB_AVX2; else if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX)) vector_mode = RTE_AESNI_MB_AVX; - else if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_SSE4_1)) + else vector_mode = RTE_AESNI_MB_SSE; - else { - MB_LOG_ERR("Vector instructions are not supported by CPU"); - return -EFAULT; - } dev = rte_cryptodev_vdev_pmd_init(init_params->name, sizeof(struct aesni_mb_private), init_params->socket_id,