From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f172.google.com (mail-wr0-f172.google.com [209.85.128.172]) by dpdk.org (Postfix) with ESMTP id 48A941094 for ; Wed, 5 Jul 2017 01:55:38 +0200 (CEST) Received: by mail-wr0-f172.google.com with SMTP id r103so255208717wrb.0 for ; Tue, 04 Jul 2017 16:55:38 -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=jIJSjrLeDce/X5fDxHjZvPnZ642m8kx+BoQCRdV+Ea0=; b=TSnq8k96ps6dszZtTHDWDTgIZt91WyzTNuuYYmeLYKPCFrKU42blWrCNCcohIjmtbA dbEVn9+/Dpessly+omtW4bJ0uvL6yK5tFnZKfSov+nNfirTWFG03jHbFXIGX4FbIYQ1r uRRvUdIg6Wu+HD53jXUBqjwzTISzNBa0Rt8F0nfiYFNo+obD/UaNd5hZle7FcQXA0UYj Oyatw7H9tgjlwapsB4Few76OCfpsWKdNvWhYKiukmMXGSfg3rUD/vW+V8KjNKePAxVmV MrbZZhJvCR8ReUNiEFSv4rQweIVFWRGgP1Liy8tghD4UJTPYUB/r/WRap0aYrkMQAJ12 cP3w== 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=jIJSjrLeDce/X5fDxHjZvPnZ642m8kx+BoQCRdV+Ea0=; b=AGp7A7/tIWCMkIzuKPffXyT82w1V46S76NPsxkekFLtqBARVqPZJUE4F2i0Hj7pFKg AJWPM2qxYlwP8YeVkXk+rsvxsJpoIpKdJ+9Nb87/NBcgCN7MGLrvTWR2ZiJ8TrmIWNmv LC6aKFZBybO/RAmXq3hZvVtqAQxkMbJMH6oRQm/kS0FkisgGssgpCVWxkoCtrZ0Si6Jj gzTZn4hRuNh0n3pGYxPIF84hGq++CtTheY8DOi+vllsstBOjKD6+8HaIlCnCvoTPNZMs ghOH+uP5I2aRCMIjz1uzHIOkO1zgFJWuPrwDMBgfCGx8Ir5BvUv2bDPWtMF1SBdZgxEN KN0Q== X-Gm-Message-State: AKS2vOzGsYIlnDpHTiOVmUlBzP6PEH1BsJNRV8NO6HIDVQFUtl+WO/rm ZvQ74GV+dZuNczZfGKs= X-Received: by 10.223.173.140 with SMTP id w12mr43229732wrc.4.1499212537580; Tue, 04 Jul 2017 16:55:37 -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 19sm23406533wrx.26.2017.07.04.16.55.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Jul 2017 16:55:36 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet , Jan Blunck , Stephen Hemminger , Bruce Richardson Date: Wed, 5 Jul 2017 01:55:17 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v7 0/6] rte_bus parse API 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: Tue, 04 Jul 2017 23:55:38 -0000 Following the evolutions announced in [1], here is the first part of the rte_devargs rework planned for 17.08. The rationale has been partially explained in [2]. This first part covers the introduction of the necessary facilities in rte_bus to allow for generic device parsing. This API is implemented for the virtual and PCI buses. Additionally, this rte_bus evolution is being used within rte_devargs to characterize a device type by its bus. This work is the first of two parts to reduce the dependency of the EAL upon specific bus implementations. The modified rte_devargs parsing allows declaring on the EAL command line explicit buses to handle a device. The format is as follow: --vdev="virtual:net_ring0" --vdev="net_tap0,iface=tap0" -w PCI:00:02.0 -w 00:03.0 This explicit bus designation is optional; no evolution is currently forced on users to migrate to this new format. The separating character is arbitrary. [1]: http://dpdk.org/ml/archives/dev/2017-May/065634.html [2]: http://dpdk.org/ml/archives/dev/2017-May/065670.html This patchset depends on: bus attach/detach API and hotplug rework http://dpdk.org/ml/archives/dev/2017-June/069643.html http://dpdk.org/dev/patchwork/patch/26135/ v1 -> v2: * fix PCI parse implementation v2 --> v3: * Rebase the series on the new plug / unplug API v3 --> v4: * Several bug fixes, commit log rewrite. * Follow the changes to the plug / unplug API. v5: * Do not verify bus name on bus registration. Actually, a legal bus name is not defined anymore. The bus/device separator in a device declaration can be anything, as long as it is a single character. The behavior is otherwise unchanged. v6: * Rebase upon new hotplug patchset version. * Rename rte_bus_from_dev as rte_bus_find_by_device_name. This function is now private to the EAL. * Remove rte_bus_from_name, as it has been integrated as rte_bus_find_by_name by Jan Blunck. * Reduce parsing ambiguity in rte_devargs. v7: * Use Thomas' bus registration fix. * Improve rte_bus_find_by_device_name, by making more resistant to shaky bus parse implementation. Gaetan Rivet (5): bus: introduce parsing functionality vdev: implement parse bus operation pci: implement parse bus operation bus: add helper to find a bus from a device name devargs: parse bus info Thomas Monjalon (1): bus: fix driver registration drivers/bus/fslmc/fslmc_bus.c | 2 +- drivers/bus/fslmc/rte_fslmc.h | 3 -- lib/librte_eal/common/eal_common_bus.c | 21 +++++++++ lib/librte_eal/common/eal_common_devargs.c | 42 +++++++++++++++--- lib/librte_eal/common/eal_common_pci.c | 17 +++++++- lib/librte_eal/common/eal_common_vdev.c | 66 +++++++++++++++-------------- lib/librte_eal/common/eal_private.h | 12 ++++++ lib/librte_eal/common/include/rte_bus.h | 24 ++++++++++- lib/librte_eal/common/include/rte_devargs.h | 3 ++ lib/librte_eal/common/include/rte_eal.h | 3 ++ lib/librte_eal/common/include/rte_pci.h | 3 -- lib/librte_eal/common/include/rte_vdev.h | 2 - 12 files changed, 148 insertions(+), 50 deletions(-) -- 2.1.4