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 029156CD8 for ; Wed, 21 Nov 2018 16:46:17 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 916D9222A9; Wed, 21 Nov 2018 10:46:17 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 21 Nov 2018 10:46:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=mesmtp; bh=k6EHtnfKFWLi15hrhINMyDQ 3OHPZGNe8tK1UZwdH8dk=; b=WTvYKAY86LYhGXO0fFgtjjVZJR1BBkNApizw+CJ 2oJGCzLKrIr1WIzEspAI1V6hdRkIwJKpYBWhV/gtIh27uY80/EaKTEhC1SRnHZCj o1k2fpau6l3xnSetnJrB0Zs+TaobNGib9Ih/gZ//REZZvnQGW7MWS3yKKKqOkSGQ 5Sic= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=k6EHtnfKFWLi15hrh INMyDQ3OHPZGNe8tK1UZwdH8dk=; b=NPWQlAc6KBNZBDbtioxc0ha+qlnB9hxlQ DKKQ7B4ILS/CXeLZfMlMiZBOFLqrVsquhIHozc4WpTonF76E9JoCQvUJor3wl/Ef kJObQDWaLIMGWUuWdeNJ4f6nlVJUfJVas3aWSKW/m6h4mOHoJ8urfNIiXYmedwbY 3Y+tNFd4v28GVRCl+A4rQcy6SQD135qt3d0GUptcvYL49crKB0puIozf5RUcYEQ3 OWz39CKFLxxZ+y5LMet1WFEZFLJGifaJbUgchWZ9zeOT/kXoMJYfG8UmrBhmKk23 XaSY+DPHXF4XIGeLCj00imaLDpVMnF41VliiFFWHL5SeOYnkNWtIQ== X-ME-Sender: X-ME-Proxy: Received: from xps.monjalon.net (203.198.136.77.rev.sfr.net [77.136.198.203]) by mail.messagingengine.com (Postfix) with ESMTPA id 2A5BB103E2; Wed, 21 Nov 2018 10:46:15 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: olivier.matz@6wind.com Date: Wed, 21 Nov 2018 16:45:45 +0100 Message-Id: <20181121154545.14261-1-thomas@monjalon.net> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] 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: Wed, 21 Nov 2018 15:46:18 -0000 In some usages, kvlist is processed one time in rte_kvargs_process(), and it is processed a second time if need to check whether it was matched. In order to simplify implementation of kvargs checks, a new callback may be used for "no match" cases. The change of the function prototype would be as below: int rte_kvargs_process(const struct rte_kvargs *kvlist, const char *key_match, - arg_handler_t handler, + arg_handler_t match_handler, + arg_handler_t no_match_handler, void *opaque_arg) Signed-off-by: Thomas Monjalon --- doc/guides/rel_notes/deprecation.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 34b28234c..7af65cd4b 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -11,6 +11,10 @@ API and ABI deprecation notices are to be posted here. Deprecation Notices ------------------- +* kvargs: The function ``rte_kvargs_process`` will get a new parameter + for a function pointer called in case of no match of the key. + It will ease implementation of default values or check for mandatory keys. + * 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