From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 88C8C1B3B1 for ; Thu, 22 Nov 2018 14:22:16 +0100 (CET) Received: from lfbn-1-5979-29.w90-110.abo.wanadoo.fr ([90.110.18.29] helo=droids-corp.org) by mail.droids-corp.org with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gPoxM-00057q-Us; Thu, 22 Nov 2018 14:23:46 +0100 Received: by droids-corp.org (sSMTP sendmail emulation); Thu, 22 Nov 2018 14:22:12 +0100 Date: Thu, 22 Nov 2018 14:22:12 +0100 From: Olivier Matz To: Thomas Monjalon Cc: dev@dpdk.org Message-ID: <20181122132212.brq3ifximbtu5c5d@platinum> References: <20181121154545.14261-1-thomas@monjalon.net> <20181122103223.22837-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181122103223.22837-1-thomas@monjalon.net> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH v2] doc: announce kvargs API change X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Nov 2018 13:22:16 -0000 On Thu, Nov 22, 2018 at 11:32:23AM +0100, Thomas Monjalon wrote: > After processing a kvlist in rte_kvargs_process(), > it may be needed to loop again over kvlist in order to know > whether the key is matched or not. > In order to simplify implementation of kvargs checks, > a new pointer parameter may be used to get the match count. > > The change of the function prototype would be as below: > > int > rte_kvargs_process(const struct rte_kvargs *kvlist, > const char *key_match, > + int *match_count, > arg_handler_t handler, > void *opaque_arg) > > Signed-off-by: Thomas Monjalon Maybe "unsigned int" instead of "int". Apart from this, Acked-by: Olivier Matz