From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Lu, Wenzhuo" Subject: Re: [PATCH v2 1/3] lib/librte_ether: remove requirement of aligned RETA size Date: Sat, 1 Apr 2017 07:28:02 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B58649D@shsmsx102.ccr.corp.intel.com> References: <20170316224056.19685-1-yskoh@mellanox.com> <7783e46e840052a9abdd4e8962eede598ab848af.1490050764.git.yskoh@mellanox.com> <1920337.9E3jvcbJyk@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" , "adrien.mazarguil@6wind.com" , "nelio.laranjeiro@6wind.com" To: "Zhang, Helin" , Thomas Monjalon , Yongseok Koh , "Yigit, Ferruh" , "Ananyev, Konstantin" Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id ACAAA2C37 for ; Sat, 1 Apr 2017 09:28:31 +0200 (CEST) In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Zhang, Helin > Sent: Friday, March 31, 2017 3:34 PM > To: Thomas Monjalon; Yongseok Koh; Yigit, Ferruh; Ananyev, Konstantin > Cc: dev@dpdk.org; adrien.mazarguil@6wind.com; > nelio.laranjeiro@6wind.com > Subject: Re: [dpdk-dev] [PATCH v2 1/3] lib/librte_ether: remove requireme= nt > of aligned RETA size >=20 >=20 >=20 > > -----Original Message----- > > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > Sent: Thursday, March 30, 2017 8:38 AM > > To: Yongseok Koh; Yigit, Ferruh; Zhang, Helin; Ananyev, Konstantin > > Cc: dev@dpdk.org; adrien.mazarguil@6wind.com; > > nelio.laranjeiro@6wind.com > > Subject: Re: [PATCH v2 1/3] lib/librte_ether: remove requirement of > > aligned RETA size > > > > 2017-03-20 16:04, Yongseok Koh: > > > In rte_eth_check_reta_mask(), it is required to align the size of > > > the RETA table to RTE_RETA_GROUP_SIZE but as the size can be less > > > than the limit, this should be removed. The change is also applied > > > to a command of > > testpmd. > > > > > > Signed-off-by: Yongseok Koh > > [...] > > > - if (reta_size !=3D RTE_ALIGN(reta_size, RTE_RETA_GROUP_SIZE)) { > > > - RTE_PMD_DEBUG_TRACE("Invalid reta size, should be %u > > aligned\n", > > > - > > RTE_RETA_GROUP_SIZE); > > > - return -EINVAL; > > > - } > > > - > > > - num =3D reta_size / RTE_RETA_GROUP_SIZE; > > > + num =3D (reta_size + RTE_RETA_GROUP_SIZE - 1) / > > RTE_RETA_GROUP_SIZE; > > > > There is no comment for this constraint neither in the code nor in the > > commit: http://dpdk.org/commit/66c594904 So, I guess it can be removed. > > If a check is needed, it could be added in the relevant drivers. > > > > Helin, Konstantin, please check for Intel drivers. > Hi Thomas >=20 > Thank you very much for the reminder! > We will check that and see if there is any impacts to Intel drivers. I don't think it has any impact to the drivers. To my opinion, it's a good fix as it makes the name ' reta_size' more reaso= nable. >=20 > Regards, > Helin > > > > Ferruh, please take care of this series.