From: =?iso-8859-1?Q?N=E9lio?= Laranjeiro Subject: Re: [PATCH] net/mlx5: dump flow create error message Date: Wed, 7 Feb 2018 07:50:00 +0100 Message-ID: <20180207065000.ll4s4sw2rxcf23tg@laranjeiro-vm.dev.6wind.com> References: <20180206125253.91036-1-xuemingl@mellanox.com> <20180206132209.efxis4nxd2z2hg7o@laranjeiro-vm.dev.6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Nelio Laranjeiro , "dev@dpdk.org" , Shahaf Shuler To: "Xueming(Steven) Li" Return-path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 7BD541B7BE for ; Wed, 7 Feb 2018 07:49:31 +0100 (CET) Received: by mail-wm0-f50.google.com with SMTP id r71so1029405wmd.1 for ; Tue, 06 Feb 2018 22:49:31 -0800 (PST) Content-Disposition: inline In-Reply-To: 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 Tue, Feb 06, 2018 at 02:20:28PM +0000, Xueming(Steven) Li wrote: > Hi Nelio, > > > -----Original Message----- > > From: Nélio Laranjeiro [mailto:nelio.laranjeiro@6wind.com] > > Sent: Tuesday, February 6, 2018 9:22 PM > > To: Xueming(Steven) Li > > Cc: Nelio Laranjeiro ; dev@dpdk.org; Shahaf > > Shuler > > Subject: Re: [dpdk-dev] [PATCH] net/mlx5: dump flow create error message > > > > On Tue, Feb 06, 2018 at 08:52:53PM +0800, Xueming Li wrote: > > > Add error message dump when flow create error happened. > > > > > > Signed-off-by: Xueming Li > > > --- > > > drivers/net/mlx5/mlx5_flow.c | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/net/mlx5/mlx5_flow.c > > > b/drivers/net/mlx5/mlx5_flow.c index e38452ef3..ea90556d0 100644 > > > --- a/drivers/net/mlx5/mlx5_flow.c > > > +++ b/drivers/net/mlx5/mlx5_flow.c > > > @@ -1890,6 +1890,7 @@ priv_flow_create(struct priv *priv, > > > DEBUG("Flow created %p", (void *)flow); > > > return flow; > > > exit: > > > + ERROR("Flow create error: %s", error->message); > > > for (i = 0; i != hash_rxq_init_n; ++i) { > > > if (parser.queue[i].ibv_attr) > > > rte_free(parser.queue[i].ibv_attr); > > > -- > > > 2.13.3 > > > > Hi Xueming, > > > > Can you move this debug message to mlx5_flow_create(). > > This function also called by control flow and fdir functions, > here should be the best place. Make sense, Acked-by: Nelio Laranjeiro Thanks, -- Nélio Laranjeiro 6WIND