From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id A26472C4D for ; Thu, 17 Mar 2016 15:06:07 +0100 (CET) Received: by mail-wm0-f47.google.com with SMTP id p65so119045283wmp.0 for ; Thu, 17 Mar 2016 07:06:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=GKAB0v4yPkkJqNyw1paIvMAU6gyMwTQ5eBJF9Vdl02o=; b=k/O+xM5uciMbXYwTxnv6wviTQkF7oIHTvak43MFMQavzzLAzqe2dd++qbw2wh6LpYS 7hfHzPegfaDDJ8PcarIH58OadBfqCwhtDPCSFvPMQmYE+L3sJbkAyGDDR2H9rfGwWfN4 3H/IMBoHwIE4XjUOtWU643HTHnzYpe1/5LICzaMySy7BhpsALX2Z7g8TyOrle858rGJK Hah1Bp/LGc3xoUqPOwzplkW+iXV+L+PFOfAdeDW8rV7X8xn/5uwts0J2Krhz5y8/vBde GL7Pcu6w/UiVkcV2xVYh2venLNg8WEUGLrYdlb3hkfIrAopgsgQBcUbaaI5FmYcQAgMx zncw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=GKAB0v4yPkkJqNyw1paIvMAU6gyMwTQ5eBJF9Vdl02o=; b=cqdVvO3Wv3xMOZcdSB/M2yhb3ZCyB9W97GbtQprs+6rqZuGsqACX34SRrZOooZjAR8 QH7l78kVmoj/0YWT93C054nzLYT7GFNyii+xyapVjAK334iTADWyOxjVrQyGcj4HKvas RRLu49+79ydYuLJ1qGsdr30fsBzmrkUj8Z16pgfzUwvLs8qK+uurF/ddIQXY2ogNXBf0 kdziHz0LtVk0cpAfKLQVuOil3w0u6H7MXhpb/Hy/j4a1H66g6vL9vbp2tLf36Ye8/j4B OuBthaKj0XFgMvBOFyp8IIh42GhoST1en3aFUgFb3F/dc0b6Zfu5I3JJCZQqTulrm57w Ip3A== X-Gm-Message-State: AD7BkJJCrfmYU3haW/McE29TdpiLEE3IlnWA5gt5rLBZ7gt2Cno1cfZwjcwNlyCvjPtO3Ad9 X-Received: by 10.194.200.194 with SMTP id ju2mr9902840wjc.63.1458223567423; Thu, 17 Mar 2016 07:06:07 -0700 (PDT) Received: from xps13.localnet (91.111.75.86.rev.sfr.net. [86.75.111.91]) by smtp.gmail.com with ESMTPSA id js8sm7812620wjc.37.2016.03.17.07.06.06 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 Mar 2016 07:06:06 -0700 (PDT) From: Thomas Monjalon To: Liming Sun Cc: dev@dpdk.org, Zhigang Lu Date: Thu, 17 Mar 2016 15:04:37 +0100 Message-ID: <3032329.TjjI67JjVh@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1561679.Mbe3omy2mz@xps13> References: <1452263948-22485-1-git-send-email-lsun@ezchip.com> <1455077070-6666-1-git-send-email-lsun@ezchip.com> <1561679.Mbe3omy2mz@xps13> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v4 1/2] eal/tile: add rte_vect.h and enable CONFIG_RTE_LIBRTE_LPM 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: Thu, 17 Mar 2016 14:06:07 -0000 Any news? a v5 could be part of the RC2. 2016-03-08 20:59, Thomas Monjalon: > 2016-02-09 23:04, Liming Sun: > > rte_vect.h was missing earlier thus LPM was disabled and l3fwd is > > not able to compile. This commit implements the vector api and > > enable LPM in the tilegx configuration by default. > > > > Signed-off-by: Liming Sun > > Acked-by: Zhigang Lu > [...] > > # This following libraries are not available on the tile architecture. > > # So they're turned off. > > -CONFIG_RTE_LIBRTE_LPM=n > > +CONFIG_RTE_LIBRTE_LPM=y > > You just have to remove the disabling line. > > > +typedef union rte_xmm { > > + __m128i x; > > + uint32_t u32[XMM_SIZE / sizeof(uint32_t)]; > > + uint64_t u64[XMM_SIZE / sizeof(uint64_t)]; > > +} rte_xmm_t; > > Why do you mimic SSE? > > > +/* Shifts right the 4 32-bit integers by count bits with zeros. */ > > +#define _mm_srli_epi32(v, cnt) ({ \ > > + rte_xmm_t m; \ > > + m.u64[0] = __insn_v4shru(((rte_xmm_t*)&(v))->u64[0], cnt); \ > > + m.u64[1] = __insn_v4shru(((rte_xmm_t*)&(v))->u64[1], cnt); \ > > + (m.x); \ > > +}) > > Please check the work in progress to have arch-specific implementation > of rte_lpm_lookupx4(): > http://dpdk.org/dev/patchwork/patch/10478/