From: Neil Horman Date: Fri, 1 Aug 2014 16:48:57 +0000 (-0400) Subject: ixgbe: require only sse3 intrinsics X-Git-Tag: spdx-start~10470 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8777aabc538fdac24457958eaab929f33d6c4cdf;p=dpdk.git ixgbe: require only sse3 intrinsics ixgbe was failing to build in the default configuration because it required sse4.2 intrinsics, and the default config doesn't support more than sse3. Modify the pmd so that only sse3 intrinsics are pulled in and used. Signed-off-by: Neil Horman CC: Konstantin Ananyev CC: Thomas Monjalon Acked-by: Bruce Richardson --- diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c index 09e19a34e8..fe39ca2f68 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c @@ -38,7 +38,7 @@ #include "ixgbe_ethdev.h" #include "ixgbe_rxtx.h" -#include +#include #ifndef __INTEL_COMPILER #pragma GCC diagnostic ignored "-Wcast-qual" @@ -338,7 +338,7 @@ ixgbe_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts, pkt_mb1); /* C.4 calc avaialbe number of desc */ - var = _mm_popcnt_u64(_mm_cvtsi128_si64(staterr)); + var = __builtin_popcountll(_mm_cvtsi128_si64(staterr)); nb_pkts_recd += var; if (likely(var != RTE_IXGBE_DESCS_PER_LOOP)) break;