From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id DDBC92C50 for ; Mon, 20 Feb 2017 15:18:15 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id v77so14633305wmv.0 for ; Mon, 20 Feb 2017 06:18:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=y/dAkoWi0tD0b2PTpJR1xIu5YoEW4WbIxfFkDJhpG+s=; b=K938ZscP73fx2Dnrymuhdc+IMPa/cbz3FdEk+Rjd/+N6t14W99CvO3ZKYd8SkmVdxN v2A/VqlK7TVGDRTkgjc3QWaXQERXdNGwADHuVw9d78/xRMZMKcM0pucu8XQMBv02I35S wsA6tPx+HC6GCTFGDoH5ixc9YyypBv0b6zKWVGWVmBEykK+grji6azZbNc58MvQeTEYJ LxmwC1Acb7sURVSNsRAQAe3g86uK8MO85JACRTr0yHvI8tD3vCHf3zw+F89JVTUIMrzm t8j3OIoAk2tPPTDQKRs3KUBhnMtQ8wQa3XywaQjzOgu63kJzFvZ+9UP7xFe9YU5GIaqY kBZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=y/dAkoWi0tD0b2PTpJR1xIu5YoEW4WbIxfFkDJhpG+s=; b=KlZfFx0peHvAdrNEfyITANo1vripcbAZrBSK2cOmpRLMeEpTPbg18ahD/2xCbkLIDj JY+8wrUkkCJDJeArart83gAgq6QHclfqkVXSQVmSRyLku3vTBRjT5ZUNDg9jf2uJ7FKc a19SnYVMjRsl/ODXgxVnhYqo7uzfyPz/8GUpq5XL7q09+25XzCcEsmnqL4pGcWm9vPUl Zev0nWMvnoNsaZoi5w3YzEmiP1bwh13AhyU6Mel8322qxlAbrIv4A5vhoQJBsr/dpau3 /gilzUAZSk7DZ94BE5O7/hD1PtefbeCHxXrrrANMn2HkolWoNavBc6u39OHBnNHMphcN 3MbA== X-Gm-Message-State: AMke39kXqGaXcNSXkX2vus/MqS7SbyKn57+zjfVIqFajkZO39URT2mCKZhXiOj6Rl8lhkg== X-Received: by 10.28.66.221 with SMTP id k90mr20681728wmi.90.1487600294995; Mon, 20 Feb 2017 06:18:14 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id o2sm24932276wra.42.2017.02.20.06.17.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Feb 2017 06:18:02 -0800 (PST) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Cc: david.marchand@6wind.com, shreyansh.jain@nxp.com, ferruh.yigit@intel.com Date: Mon, 20 Feb 2017 15:17:34 +0100 Message-Id: <1487600262-14382-1-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1487152929-23627-1-git-send-email-jblunck@infradead.org> References: <1487152929-23627-1-git-send-email-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v2 0/8] Rework vdev probing to use rte_bus infrastructure 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: Mon, 20 Feb 2017 14:18:16 -0000 With the rte_bus infrastructure present in 17.02 it is possible to refactor the virtual device probing into a bus. This series also introduces the rte_vdev_device to better keep track of devices. This patchset depends on: http://dpdk.org/dev/patchwork/patch/20416/ http://dpdk.org/dev/patchwork/patch/20417/ Changes since version 1: * addition of rte_vdev_device_name() helper * removed rte_eal_dev_init() from *.map files * use SOCKET_ID_ANY Jan Blunck (8): eal: use different constructor priorities for initcalls eal: probe legacy PCI devices before other bus devices eal: move virtual device probing into a bus eal: remove unused rte_eal_dev_init() eal: Refactor vdev driver probe/remove eal: add struct rte_vdev_device eal: add virtual device name helper function eal: make virtual bus use rte_vdev_device lib/librte_eal/bsdapp/eal/eal.c | 9 +- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 7 +- lib/librte_eal/common/eal_common_dev.c | 28 --- lib/librte_eal/common/eal_common_vdev.c | 252 +++++++++++++++++++++--- lib/librte_eal/common/include/rte_bus.h | 17 +- lib/librte_eal/common/include/rte_dev.h | 5 - lib/librte_eal/common/include/rte_eal.h | 12 +- lib/librte_eal/common/include/rte_tailq.h | 2 +- lib/librte_eal/common/include/rte_vdev.h | 7 + lib/librte_eal/linuxapp/eal/eal.c | 9 +- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 - 11 files changed, 268 insertions(+), 81 deletions(-) -- 2.7.4