From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH] enic: fix issues when using Rx scatter with multiple RQs Date: Tue, 28 Jun 2016 12:12:57 +0100 Message-ID: <20160628111256.GD22860@bricha3-MOBL3> References: <1466807997-21403-1-git-send-email-neescoba@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Nelson Escobar Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id ADF8429C7 for ; Tue, 28 Jun 2016 13:13:00 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1466807997-21403-1-git-send-email-neescoba@cisco.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Jun 24, 2016 at 03:39:57PM -0700, Nelson Escobar wrote: > The Rx scatter patch failed to make a few changes and resulted > in problems when using multiple RQs since the wrong RQ or CQ > was being used. > I think you might need to expand on what the "few changes" are. Also, please expand out the terms RQ and CQ are. Thanks, /Bruce > Fixes: 14a261bf0520 ("enic: add scattered Rx support") > > Signed-off-by: Nelson Escobar > Reviewed-by: John Daley > --- > drivers/net/enic/enic.h | 2 +- > drivers/net/enic/enic_main.c | 10 ++++++---- > 2 files changed, 7 insertions(+), 5 deletions(-) > > diff --git a/drivers/net/enic/enic.h b/drivers/net/enic/enic.h > index ed5f18d..15b1d45 100644 > --- a/drivers/net/enic/enic.h > +++ b/drivers/net/enic/enic.h > @@ -174,7 +174,7 @@ static inline unsigned int enic_vnic_rq_count(struct enic *enic) > > static inline unsigned int enic_cq_rq(__rte_unused struct enic *enic, unsigned int rq) > { > - return rq; > + return rq / 2; This looks like it might need a comment explaning why you divide by 2.