From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH v2] doc: announce kvargs API change Date: Thu, 22 Nov 2018 11:32:23 +0100 Message-ID: <20181122103223.22837-1-thomas@monjalon.net> References: <20181121154545.14261-1-thomas@monjalon.net> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org To: olivier.matz@6wind.com Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id E2D501B39A for ; Thu, 22 Nov 2018 11:32:28 +0100 (CET) In-Reply-To: <20181121154545.14261-1-thomas@monjalon.net> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- v1: callback for no-match v2: integer for match count (Olivier suggestion) --- doc/guides/rel_notes/deprecation.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 34b28234c..dccf7bee6 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -11,6 +11,9 @@ API and ABI deprecation notices are to be posted here. Deprecation Notices ------------------- +* kvargs: The function ``rte_kvargs_process`` will get a new parameter + for returning key match count. It will ease handling of no-match case. + * eal: both declaring and identifying devices will be streamlined in v18.11. New functions will appear to query a specific port from buses, classes of device and device drivers. Device declaration will be made coherent with the -- 2.19.0