From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 760325926 for ; Fri, 1 Aug 2014 19:37:58 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 01 Aug 2014 10:40:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,781,1400050800"; d="scan'208";a="570554655" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by fmsmga001.fm.intel.com with ESMTP; 01 Aug 2014 10:39:49 -0700 Received: from irsmsx110.ger.corp.intel.com (163.33.3.25) by IRSMSX101.ger.corp.intel.com (163.33.3.153) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 1 Aug 2014 18:39:49 +0100 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.131]) by IRSMSX110.ger.corp.intel.com ([169.254.15.149]) with mapi id 14.03.0195.001; Fri, 1 Aug 2014 18:39:49 +0100 From: "Richardson, Bruce" To: Neil Horman , "dev@dpdk.org" Thread-Topic: [PATCH] ixgbe: Reduce compilation to only require sse3 intrinsics Thread-Index: AQHPraiIyuub8O4i7EWBkzTdOJbtHpu8A7sg Date: Fri, 1 Aug 2014 17:39:48 +0000 Message-ID: <59AF69C657FD0841A61C55336867B5B0343D47DF@IRSMSX103.ger.corp.intel.com> References: <1406911737-13362-1-git-send-email-nhorman@tuxdriver.com> In-Reply-To: <1406911737-13362-1-git-send-email-nhorman@tuxdriver.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] ixgbe: Reduce compilation to only require sse3 intrinsics X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2014 17:37:58 -0000 > -----Original Message----- > From: Neil Horman [mailto:nhorman@tuxdriver.com] > Sent: Friday, August 01, 2014 9:49 AM > To: dev@dpdk.org > Cc: Neil Horman; Ananyev, Konstantin; Richardson, Bruce; Thomas Monjalon > Subject: [PATCH] ixgbe: Reduce compilation to only require sse3 intrinsic= s >=20 > ixgbe was failing to build in the default configuration because it requir= ed > 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. >=20 > Signed-off-by: Neil Horman > CC: "Konstantin Ananyev" > CC: Bruce Richardson > CC: Thomas Monjalon > --- > lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c > b/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c > index 09e19a3..fe39ca2 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" >=20 > -#include > +#include >=20 > #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); >=20 > /* C.4 calc avaialbe number of desc */ > - var =3D _mm_popcnt_u64(_mm_cvtsi128_si64(staterr)); > + var =3D __builtin_popcountll(_mm_cvtsi128_si64(staterr)); > nb_pkts_recd +=3D var; > if (likely(var !=3D RTE_IXGBE_DESCS_PER_LOOP)) > break; > -- > 1.8.3.1 Acked-by: Bruce Richardson