From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Hunt, David" Subject: Re: [PATCH v2 1/5] lib: distributor performance enhancements Date: Thu, 22 Dec 2016 16:14:13 +0000 Message-ID: References: <1480567821-70846-2-git-send-email-david.hunt@intel.com> <1482381428-148094-1-git-send-email-david.hunt@intel.com> <1482381428-148094-2-git-send-email-david.hunt@intel.com> <20161222124753.GB8778@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, bruce.richardson@intel.com To: Jerin Jacob Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 94E8010DAD for ; Thu, 22 Dec 2016 17:14:16 +0100 (CET) In-Reply-To: <20161222124753.GB8778@localhost.localdomain> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Thanks for the review, Jerin, I very much appreciate it. I'll address all the minor comments, and I've a comment or two on the remaining changes below. On 22/12/2016 12:47 PM, Jerin Jacob wrote: > On Thu, Dec 22, 2016 at 04:37:04AM +0000, David Hunt wrote: > --snip-- >> + >> + /* set the GET_BUF but even if we got no returns */ >> + buf->retptr64[0] |= RTE_DISTRIB_GET_BUF; >> + >> + return 0; >> +} >> + >> +#if RTE_MACHINE_CPUFLAG_SSE2 >> +static inline void > Move SSE version of the code to separate file so that later other SIMD arch > specific version like NEON can be incorporated. > Sure. Will do. I'll model it on the i40e SIMD layout. >> + switch (d->dist_match_fn) { >> +#ifdef RTE_MACHINE_CPUFLAG_SSE2 > Is this conditional compilation flag is really required ? i.e > RTE_DIST_MATCH_SSE will not enabled in non SSE case So I can always leave the call to find_match_sse2 in there, but the run-time cpu flags check will take care of whether it's called or not? OK sure. Thanks, Dave.