From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?N=E9lio?= Laranjeiro Subject: Re: [PATCH v2 13/20] net/mlx5: add RSS flow action Date: Mon, 9 Jul 2018 15:09:10 +0200 Message-ID: <20180709130910.dzuhsbtynnxpji5c@laranjeiro-vm.dev.6wind.com> References: <20180706021630.GB47821@yongseok-MBP.local> <20180706155907.x7geq7jxmbzs76im@laranjeiro-vm.dev.6wind.com> <143310F7-24FB-419C-BDB3-C21C9978DA7F@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: "dev@dpdk.org" , Adrien Mazarguil To: Yongseok Koh Return-path: Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by dpdk.org (Postfix) with ESMTP id 0E9C11B1EF for ; Mon, 9 Jul 2018 15:09:27 +0200 (CEST) Received: by mail-wr1-f68.google.com with SMTP id q10-v6so10933152wrd.4 for ; Mon, 09 Jul 2018 06:09:27 -0700 (PDT) Content-Disposition: inline In-Reply-To: <143310F7-24FB-419C-BDB3-C21C9978DA7F@mellanox.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 Fri, Jul 06, 2018 at 05:35:22PM +0000, Yongseok Koh wrote: > > > On Jul 6, 2018, at 8:59 AM, Nélio Laranjeiro wrote: > > > > Hi Yongseok, > > > > I am only addressing your questions concerns here, almost all other > > points I also agree with them. > > > > On Thu, Jul 05, 2018 at 07:16:35PM -0700, Yongseok Koh wrote: > >> On Wed, Jun 27, 2018 at 05:07:45PM +0200, Nelio Laranjeiro wrote: > >>> Signed-off-by: Nelio Laranjeiro > >>> --- > >> [...] > >> > >>> + */ > >>> +static void > >>> +mlx5_flow_layers_update(struct rte_flow *flow, uint32_t layers) > >>> +{ > >>> + if (flow->expand) { > >>> + if (flow->cur_verbs) > >>> + flow->cur_verbs->layers |= layers; > >> > >> If flow->cur_verbs is null, does that mean it is a testing call? Then, is it > >> unnecessary to update layers for the testing call? Confusing.. > > > > No it may also happen if the buffer was too small, in any case the code > > continues its validation. > > Okay, understand. Thanks. > But another question was, if it is a testing call (flow->cur_verbs is null) with > flow->expand being set, then no 'layers' isn't updated in this code. Is it okay? yes it was ok, after I've fixed the issue in the layers themselves, again no layer position was done when the expanded was enabled. Thanks, -- Nélio Laranjeiro 6WIND