From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Matz Subject: Re: [PATCH] lib/librte_cmdline: fix CLI parsing issue Date: Fri, 28 Apr 2017 11:13:25 +0200 Message-ID: <20170428111325.7f0d2ab2@platinum> References: <1493089885-94889-1-git-send-email-wenzhuo.lu@intel.com> <6A0DE07E22DDAD4C9103DF62FEBC09093B59DB03@shsmsx102.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "stable@dpdk.org" , "Glynn, Michael J" , "Liu, Yu Y" , "dev@dpdk.org" To: "Lu, Wenzhuo" Return-path: Received: from mail-wr0-f175.google.com (mail-wr0-f175.google.com [209.85.128.175]) by dpdk.org (Postfix) with ESMTP id AEE609E3 for ; Fri, 28 Apr 2017 11:13:28 +0200 (CEST) Received: by mail-wr0-f175.google.com with SMTP id l50so30121221wrc.3 for ; Fri, 28 Apr 2017 02:13:28 -0700 (PDT) In-Reply-To: <6A0DE07E22DDAD4C9103DF62FEBC09093B59DB03@shsmsx102.ccr.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" Hi Wenzhuo, On Fri, 28 Apr 2017 08:38:21 +0000, "Lu, Wenzhuo" wrote: > Hi Oilvier, > As we discussed before, I send this patch. Would you like to take a look at it? Better fix it before release 17.05, thanks. > > > > -----Original Message----- > > From: Lu, Wenzhuo > > Sent: Tuesday, April 25, 2017 11:11 AM > > To: dev@dpdk.org > > Cc: olivier.matz@6wind.com; Lu, Wenzhuo; stable@dpdk.org > > Subject: [PATCH] lib/librte_cmdline: fix CLI parsing issue > > > > When parsing a CLI, all the CLI instances are checked one by one. Even if an > > instance already matches the CLI, the parsing will not stop for ambiguous > > check. > > The problem is that the following check may change the parsing result of the > > previous one even if the following instance doesn't match. > > > > Use a temporary validate for the parsing result when trying to match an > > instance and only store the result when it matches, so the previous result > > has no chance to be changed. > > > > Fixes: af75078fece3 ("first public release") > > CC: stable@dpdk.org > > > > Signed-off-by: Wenzhuo Lu Sorry for the delay, Acked-by: Olivier Matz