From mboxrd@z Thu Jan 1 00:00:00 1970 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) 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; bh=C4IbY9ZF7JHHQBpFFaKuNYXvTqeNI6zFcK5//41Ayzc=; b=NLMaqB8H8kDZdUPJ9ASd6wLiN1Ec4P9U5hMaq2GWa5SjAoxi3qDcvCO6CgPulAlyq0 neR8xf56eWMZgbm+aHnOEN1q1RPO6zjE6LUNnj5joI8/xqwV6EqgSreH51pf/OZ8x/7s TCOUffc9ZR65pABqVeZtBwYg4bDfIYBLhI7h57BmncdLce4yDtK5GTAogeqCopQzPB7Q tkKKuFM8IWk9Fhpmo8SZTjKk/eByAdvbHwbaN9Idllt90QjKlfhjnaDpjKkxXd0kdoRK 1RwacT0Ujf1jIKgjHCY9aHQJAQDxv1Q65/6BGhRO+wQrb6cXjfo4g9Bwm4zAwyNgFwmR p5Zw== 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; bh=C4IbY9ZF7JHHQBpFFaKuNYXvTqeNI6zFcK5//41Ayzc=; b=dZ7sLOl345UyQyIhuF5kb8whZHQd2SI92HpmqQkh68y53H2NZzulbgzchGpLI3LR7F CJIEX88weXUt/jf8z0RaO+hkWwA6H3WXbm6M4lF26SCWvt8mqwEVIV2b4MA9ckHFIPrw pU7sIYazgGAWvJNWSy2pDdPGdDEhCmmz/cDrEuLwC4H/tnoqvncuep1PKkVAhT1+C/4x hL3ymZGOxkQZNIs9CLP1QEDY2a8BsQJIAmMJzDR+CMJL7J7cywRCyFTXKPQ+ek3iH8S0 GyXX/S/WHrb9gXNVqJ5W4T8e7tvXNsdYwETGN33FPCeO1O/lwEuysoj6nVuMiBBWaxhp BFSw== X-Gm-Message-State: AODbwcAgCfJo0Y+SzgqVz9NBfLHXI/h7EBFrPX+YldizLo9z+quzDtho RZIFnzoh1UOnZTI4NjA= X-Received: by 10.28.136.83 with SMTP id k80mr6066140wmd.38.1495638335452; Wed, 24 May 2017 08:05:35 -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 25sm4076017wrz.8.2017.05.24.08.05.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 08:05:34 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet , Jan Blunck Date: Wed, 24 May 2017 17:04:52 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 Subject: [dpdk-dev] [PATCH 0/9] bus: attach / detach 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: Wed, 24 May 2017 15:05:36 -0000 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