From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C0664A0A03; Mon, 18 Jan 2021 16:17:34 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A184F140F53; Mon, 18 Jan 2021 16:16:59 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by mails.dpdk.org (Postfix) with ESMTP id A240D140F28 for ; Mon, 18 Jan 2021 16:16:50 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from xuemingl@nvidia.com) with SMTP; 18 Jan 2021 17:16:48 +0200 Received: from nvidia.com (pegasus05.mtr.labs.mlnx [10.210.16.100]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 10IFGmBl002238; Mon, 18 Jan 2021 17:16:48 +0200 From: Xueming Li To: Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko , Olivier Matz Cc: dev@dpdk.org, Viacheslav Ovsiienko , xuemingl@nvidia.com, Asaf Penso Date: Mon, 18 Jan 2021 15:16:37 +0000 Message-Id: <1610983002-7630-1-git-send-email-xuemingl@nvidia.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1608304614-13908-2-git-send-email-xuemingl@nvidia.com> References: <1608304614-13908-2-git-send-email-xuemingl@nvidia.com> Subject: [dpdk-dev] [PATCH v2 0/5] eal: enable global device syntax X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The new Global Device Syntax [1] is used to identify a device with full bus, class and driver description, example: -a bus=pci,addr=82:00.0/class=eth/driver=mlx5,... This patchset enables global device syntax with backward compatibility by: - unify devargs memory cleanup - parse name from bus parameters - try new global syntax parsing firstly and fallback to legacy parsing. History: V1: - Inital version V2: - add devargs.src as complete source dev string - change devargs.data to scratch buffer - add rte_drvargs_free() to release scratch memory - change name policy to align with rte_eth_iterator_init() - remove PCI bus fix as name already resolved in rte_devargs_parse(). [1] Global Device Syntax: https://www.dpdk.org/wp-content/uploads/sites/35/2018/10/am-07-DPDK-hotplug-20180905.pdf [2] RFC: http://patchwork.dpdk.org/project/dpdk/list/?series=14378 [3] V1: http://patchwork.dpdk.org/project/dpdk/list/?series=14610 Xueming Li (5): devargs: fix memory leak on parsing error devargs: refactor scratch buffer storage kvargs: add get by key function devargs: parse name from global device syntax devargs: enable global device syntax devargs app/test-pmd/config.c | 7 +-- app/test-pmd/testpmd.c | 5 +- drivers/bus/vdev/vdev.c | 9 +-- drivers/net/failsafe/failsafe_args.c | 3 +- drivers/net/failsafe/failsafe_eal.c | 2 +- examples/multi_process/hotplug_mp/commands.c | 6 +- lib/librte_eal/common/eal_common_dev.c | 9 ++- lib/librte_eal/common/eal_common_devargs.c | 60 ++++++++++++++------ lib/librte_eal/common/hotplug_mp.c | 6 +- lib/librte_eal/include/rte_devargs.h | 18 ++++-- lib/librte_eal/rte_eal_exports.def | 1 + lib/librte_eal/version.map | 1 + lib/librte_ethdev/rte_ethdev.c | 7 +-- lib/librte_kvargs/rte_kvargs.c | 20 +++++++ lib/librte_kvargs/rte_kvargs.h | 14 +++++ lib/librte_kvargs/version.map | 1 + 16 files changed, 120 insertions(+), 49 deletions(-) -- 2.25.1