]> git.droids-corp.org - dpdk.git/commitdiff
distributor: remove checks for SSE4
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 20 Jun 2017 15:22:58 +0000 (16:22 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 4 Jul 2017 12:35:41 +0000 (14:35 +0200)
Since SSE4 is now part of the minimum requirements for DPDK, we now longer
need this check.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_distributor/Makefile
lib/librte_distributor/rte_distributor.c

index 3ffb911ce80db92f8ff52d12240975ebbca9cd20..b417ee7bee030c8e7482770b7e1c0f0e04ed9148 100644 (file)
@@ -46,10 +46,6 @@ SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) := rte_distributor_v20.c
 SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += rte_distributor.c
 ifeq ($(CONFIG_RTE_ARCH_X86),y)
 SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += rte_distributor_match_sse.c
-# distributor SIMD algo needs SSE4.2 support
-ifeq ($(findstring RTE_MACHINE_CPUFLAG_SSE4_2,$(CFLAGS)),)
-CFLAGS_rte_distributor_match_sse.o += -msse4.2
-endif
 else
 SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += rte_distributor_match_generic.c
 endif
index 32dd18edcae054886b4f1aa4ecd0b4f8a9a3ba76..c4e31b8c4245185eb89120e02eedf2a4dba2cf5b 100644 (file)
@@ -658,12 +658,10 @@ rte_distributor_create_v1705(const char *name,
        d->num_workers = num_workers;
        d->alg_type = alg_type;
 
+       d->dist_match_fn = RTE_DIST_MATCH_SCALAR;
 #if defined(RTE_ARCH_X86)
-       if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_SSE4_2))
-               d->dist_match_fn = RTE_DIST_MATCH_VECTOR;
-       else
+       d->dist_match_fn = RTE_DIST_MATCH_VECTOR;
 #endif
-               d->dist_match_fn = RTE_DIST_MATCH_SCALAR;
 
        /*
         * Set up the backog tags so they're pointing at the second cache