From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id A23592B92 for ; Thu, 12 Oct 2017 10:21:41 +0200 (CEST) Received: by mail-wm0-f50.google.com with SMTP id i124so10982556wmf.3 for ; Thu, 12 Oct 2017 01:21:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Eta1cUF1DxoCeRFjSsUwOU1Vfu2SlZF5gfEOb8rNSsA=; b=daEQQaiXheBQ7zxwTTSPMJs58zVkhLtxnItse+LGNW5s1OdQvAUu9tt7q7RAtJ+jbn V5/Tk11efzC70h3ILCKxaAihYZcZ1Z3X1X0gql4Z6V/PVdWSvYvrAE5EGmvfNabV0ZVS pHxw4u7eL/AbGkyVt7VLqN9A02vTmAiQ65FbYknNBSLFgyqbD/iFxpJbov3K0zjGaAqy ba/N8f19hvBkgQGkJhrsML+Cuepzq+qGnZS0E0qqAZ6FIRS21G6j2uao+4wTGnlozk4G /jyPDLjC0xIouswhCr62adyMKA+ZC2NSeFKaNYVHQ/AodUtddYjuXbHwxMyB0yT3FCql gImg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Eta1cUF1DxoCeRFjSsUwOU1Vfu2SlZF5gfEOb8rNSsA=; b=sygh4npQAuTD9RRjPqZJnX97R2q4A/06bKOo1wVCugEFWUYx+WUTJiYCDgzNpD8cQh LQ/8ChtyJgNWWWzwtfiSbxZ4lPEcz7baZJWP4lZOWzGUyrUJq/mkF5R4iZ7W9gJRC5Cj sg8kZc5tBY/jaJ0nYQ5mHpwP1OU8/EXnOB4V9OGCjhoQeYAhfo2ALWLWJQFe4IYWIF7f k26DeQIXJIe77zZz5USGNCZfcVORaVxB5g5zZzu5izNO4jlOEGRcLIUwFRWsJNlSqCKV r3DeS8++wuyoC6VR2iXFIreKlLtWMmZHHLelMlExREpxobXjLyb4izafLD7JeZ6EzmYz aSRA== X-Gm-Message-State: AMCzsaUsLT9HW/duNHgew2aN+fiwRQ4mRFVsDn9tHjaXksHVjZgJEwx+ 15gJSqiE85rL3s3sLVrmTnRPUUGe X-Google-Smtp-Source: AOwi7QD8LBmkEk0/L/bq6hUlyivRlsyawTQf7IfaNN/Mt5NG8KMS3vnvk9NkWoJJ7iScbpIQ9cTXng== X-Received: by 10.223.170.67 with SMTP id q3mr1226563wrd.193.1507796500925; Thu, 12 Oct 2017 01:21:40 -0700 (PDT) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id 200sm19424728wmu.44.2017.10.12.01.21.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Oct 2017 01:21:40 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 12 Oct 2017 10:21:07 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v2 00/18] devargs cleanup 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, 12 Oct 2017 08:21:41 -0000 The use of rte_devargs is inconsistent in the light of new functionalities such as device hotplug. Most of its API is still experimental and needs stabilization. Older functions were deprecated and need to be rewritten or removed. The rte_devtype is meant to disappear. v2: Big rework. * Enact requiring bus name prepended in rte_devargs parsing functions. * Remove rte_devtype. Use new probe mode setter along with generic bus reference within rte_devargs. * Rework devargs parsing API. The function is now variadic, does not enforce bus rules on the devargs being inserted as the bus has been configured previously. Old parsing function is removed. * Expose bus guessing from device name. This uses the "parse" bus operator, which may be meant to disappear. This is optional, but nice to have in a transition period. * Introduce new --dev generic device declaration parameter. This patchset depends on: Move PCI away from the EAL http://dpdk.org/ml/archives/dev/2017-August/073512.html Bus control framework http://dpdk.org/ml/archives/dev/2017-October/078752.html Gaetan Rivet (18): eal: prepend busname on legacy device declaration eal: remove generic devtype devargs: introduce iterator devargs: introduce foreach macro vdev: do not reference devargs list bus/pci: do not reference devargs list test: remove devargs unit tests devargs: make devargs list private devargs: make parsing variadic devargs: require bus name prefix devargs: simplify implementation eal: add generic device declaration parameter bus: make device recognition function public net/failsafe: keep legacy sub-device declaration ether: use new devargs parsing function devargs: remove old devargs parsing function devargs: use proper prefix doc: remove devargs deprecation notices MAINTAINERS | 1 - app/test-pmd/cmdline.c | 2 +- doc/guides/rel_notes/deprecation.rst | 13 --- drivers/bus/pci/pci_common.c | 22 +--- drivers/net/failsafe/failsafe_args.c | 11 +- examples/bond/main.c | 2 +- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 15 ++- lib/librte_eal/common/eal_common_dev.c | 39 ++----- lib/librte_eal/common/eal_common_devargs.c | 129 +++++++++-------------- lib/librte_eal/common/eal_common_options.c | 47 ++++++--- lib/librte_eal/common/eal_common_vdev.c | 11 +- lib/librte_eal/common/eal_options.h | 2 + lib/librte_eal/common/include/rte_bus.h | 12 +++ lib/librte_eal/common/include/rte_dev.h | 8 -- lib/librte_eal/common/include/rte_devargs.h | 120 ++++++++-------------- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 15 ++- lib/librte_ether/rte_ethdev.c | 11 +- test/test/Makefile | 1 - test/test/commands.c | 2 +- test/test/test_devargs.c | 131 ------------------------ 20 files changed, 186 insertions(+), 408 deletions(-) delete mode 100644 test/test/test_devargs.c -- 2.1.4