From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gaetan Rivet Subject: [PATCH 0/9] bus: attach / detach API Date: Wed, 24 May 2017 17:04:52 +0200 Message-ID: Cc: Gaetan Rivet , Jan Blunck To: dev@dpdk.org Return-path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id B35DB7CD7 for ; Wed, 24 May 2017 17:05:36 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id 7so67061697wmo.1 for ; Wed, 24 May 2017 08:05:36 -0700 (PDT) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patchset introduces the attach / detach API to rte_bus. The rte_device structure is used as the generic device representation. This API is implemented for the virtual bus. The functions rte_eal_dev_attach and rte_eal_dev_detach are updated to use this new interface. Jan Blunck (9): bus: add bus iterator to find a particular bus bus: add device iterator bus: add helper to find bus for a particular device bus: add bus helper iterator to find a particular device bus: introduce attach/detach functionality vdev: implement find_device bus operation vdev: implement detach bus operation eal: make virtual driver probe and remove take rte_vdev_device ethdev: Use embedded rte_device to detach driver lib/librte_eal/bsdapp/eal/rte_eal_version.map | 4 + lib/librte_eal/common/eal_common_bus.c | 66 ++++++++++++++++ lib/librte_eal/common/eal_common_dev.c | 100 ++++++++++++++++++------ lib/librte_eal/common/eal_common_vdev.c | 27 +++++++ lib/librte_eal/common/include/rte_bus.h | 75 ++++++++++++++++++ lib/librte_eal/common/include/rte_dev.h | 11 +++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 3 + lib/librte_ether/rte_ethdev.c | 3 +- 8 files changed, 266 insertions(+), 23 deletions(-) -- 2.1.4