From: Bruce Richardson Date: Tue, 20 Jun 2017 15:23:07 +0000 (+0100) Subject: crypto/zuc: remove check for SSE4 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=541ce1c7074c1c0cec531c5e9d4081908f1680e5;p=dpdk.git crypto/zuc: 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: Konstantin Ananyev --- diff --git a/drivers/crypto/zuc/rte_zuc_pmd.c b/drivers/crypto/zuc/rte_zuc_pmd.c index ec6d54f2fa..ada4b687c6 100644 --- a/drivers/crypto/zuc/rte_zuc_pmd.c +++ b/drivers/crypto/zuc/rte_zuc_pmd.c @@ -449,20 +449,12 @@ cryptodev_zuc_create(const char *name, { struct rte_cryptodev *dev; struct zuc_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 { - ZUC_LOG_ERR("Vector instructions are not supported by CPU"); - return -EFAULT; - } - dev = rte_cryptodev_vdev_pmd_init(init_params->name, sizeof(struct zuc_private), init_params->socket_id, vdev);