From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 814F2220FD; Thu, 22 Nov 2018 05:32:28 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 22 Nov 2018 05:32:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=mesmtp; bh=Ootezy43Xu LVaETsxhKIgcvaQ3918s82BKZeMIwqMfo=; b=FR0mzaTV4a9l1GMWusXj+BMvNZ GNzRxyfwsS+B0PBdspOLDpqgwKDqKl07+tdbKLgJdrGMqnqL/BzgPZ+e7TNt71EA 0BVdaLFSMPPrnozV6PYVkirHV6A5jAtgJJtGjklsyqfrwDpFqKEL8ScZHdSGlRSh UbIK2Y7ou/uxbKBx0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=Ootezy43XuLVaETsxhKIgcvaQ3918s82BKZeMIwqMfo=; b=czGawLMK 1K9tLEeghJbDniiv/SYLzNZfzT4eX3XQNyY860CrRJzttyPN2rceyP6qJBaKJZ2t AFT0/eB7wQyHYUdYj+8pTzEMZLt3mlWmGS+lmJNbEQCG0wdNmzT9tg9IEBxIJOY+ sox4cLUak2zwC47EtviKg+jl3xQc8/+N+FGfCI7p5FNGA54APvqBx9yz8joMDfDG 8nCT8uzvuKqzMiCkYGVkNiDVcBLbjfzKN3W5B4cp7uju6JgdYuetWZVkwi+KDx2A eCUrV6qMEB1xadM24eRVD5W9tXzptb1mc1Q2CWO3FABTfsuRevVcNT07Q9RDSNWq +JRlqgTuTXWs8g== X-ME-Sender: X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 7344FE4A43; Thu, 22 Nov 2018 05:32:27 -0500 (EST) From: Thomas Monjalon To: olivier.matz@6wind.com Cc: dev@dpdk.org Date: Thu, 22 Nov 2018 11:32:23 +0100 Message-Id: <20181122103223.22837-1-thomas@monjalon.net> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181121154545.14261-1-thomas@monjalon.net> References: <20181121154545.14261-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [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 10:32:29 -0000 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