From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Hunt, David" Subject: Re: [PATCH v4 2/6] lib: add distributor vector flow matching Date: Thu, 19 Jan 2017 12:11:02 +0000 Message-ID: References: <1482381428-148094-2-git-send-email-david.hunt@intel.com> <1483948248-91364-1-git-send-email-david.hunt@intel.com> <1483948248-91364-3-git-send-email-david.hunt@intel.com> <20170116164008.GB26296@bricha3-MOBL3.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Bruce Richardson Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 63CFB388F for ; Thu, 19 Jan 2017 13:11:05 +0100 (CET) In-Reply-To: <20170116164008.GB26296@bricha3-MOBL3.ger.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 16/1/2017 4:40 PM, Bruce Richardson wrote: > On Mon, Jan 09, 2017 at 07:50:44AM +0000, David Hunt wrote: >> --- a/lib/librte_distributor/rte_distributor_burst.c >> +++ b/lib/librte_distributor/rte_distributor_burst.c >> @@ -352,6 +352,9 @@ rte_distributor_process_burst(struct rte_distributor_burst *d, >> } >> >> switch (d->dist_match_fn) { >> + case RTE_DIST_MATCH_VECTOR: >> + find_match_vec(d, &flows[0], &matches[0]); >> + break; >> default: >> find_match_scalar(d, &flows[0], &matches[0]); >> } > Will link not fail on non-x86 platforms due to find_match_vec not having > any implementation on those platforms? > > /Bruce I've added a fallback find_match_vec in rte_distributor_match_generic.c that calls find_match_scalar. Rgds, Dave.