From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id B3B662BE1 for ; Fri, 30 Jun 2017 20:20:01 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id p204so9335843wmg.1 for ; Fri, 30 Jun 2017 11:20:01 -0700 (PDT) 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=dr/dklrG2QW3Q1fn2H3fyfMp6WsFczb+xd37m/ymwuk=; b=Eo1cEvN+7WrKI3qZ2Z08j7ccpruFhqDAlJOTqkAFtxZBhxmegq1AtAty0sX5r/nC4v qLGY+8/G156kGe3i9bsSd49e58Ebx5oR0VTWUikuKfVS4LukCnsZlnedxum8NiDMPls0 rKxG9P0JK+09hsgCADsvSy69dG28XTI9EmjPnXq92g4Go8UAfDfBek0I/0fG5FXTWPok e6HwGVe44x94TZbVZsEzfIX9G132k37ycYF1UTGfeO21vgikVi/LQksoHX51kGzZXkby 7rpB1yzDgX502eYPB7JOdUO9+QTbbPqgZDHiwSL13ke/3SyF/rtUG582ROpA6GZjcipR KBow== 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=dr/dklrG2QW3Q1fn2H3fyfMp6WsFczb+xd37m/ymwuk=; b=rPiGsKkPaxhQMsFofrAAA76Jtx7wKEp70Vv+XEAvRgJOEcgnZOYkDWKigt+CzNZD9H HGa5ASZp5uK3lKTpAptRdLAa5vqcV7G8n5PnMRzbtlj5leQblIL+wUYPA8jC2RnVVfvX jmuuZt/mxakysl1PziC06oC50jfzizsMTcvAgvmY4/0BETlZoM4D5e4NgqRZfua2AemC 0hR+0FGXBumzgOrk1wUJ+biCHC71AFXsMEYQPjN5gpmt7xkaHfjYNNLa34wvREgRcwTL eihm+iTpQ7mWX3236DlMiAFgVVEEulsUDirqdtMEtz7A98BkAdO3dFpkAsJZeigyYrQc qwdQ== X-Gm-Message-State: AKS2vOyLLeAT58wLb5y6RK46OseHFAgDCE5y8bsKbXFN+eq8itJ6RG9K NRVuIz4ELJKtScKW X-Received: by 10.80.142.27 with SMTP id 27mr6205576edw.104.1498846801045; Fri, 30 Jun 2017 11:20:01 -0700 (PDT) Received: from weierstrass.local ([91.200.110.13]) by smtp.gmail.com with ESMTPSA id r28sm2826940edd.33.2017.06.30.11.19.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jun 2017 11:20:00 -0700 (PDT) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Cc: gaetan.rivet@6wind.com, shreyansh.jain@nxp.com Date: Fri, 30 Jun 2017 20:19:29 +0200 Message-Id: <20170630181943.23929-1-jblunck@infradead.org> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170629182206.1072-1-jblunck@infradead.org> References: <20170629182206.1072-1-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v8 00/14] bus attach/detach API and hotplug rework 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: Fri, 30 Jun 2017 18:20:01 -0000 -- v7 * Revert removal of RTE_VERIFY on find_device operation since a bus that isn't able to even iterate its devices is pointless * Revert plug() changes that have been introduced in v3: int (*rte_bus_plug_t)(struct rte_device *dev, const char *devargs); * Revert pointless reordering of start argument for bus iterator functions * Add fslmc bus find_device operation * Add support to find a bus by its name * Add EAL hotplug API: int rte_eal_hotplug_add(const char *busname, const char *devname, const char *devargs); int rte_eal_hotplug_remove(const char *busname, const char *devname); * Keep rte_eal_dev_attach() backwards compatible and support hotplug of PCI and virtual devices only * Add back patch "ethdev: use embedded rte_device to detach driver" which is critical for correctly detaching the correct low-level device -- v8 * Rework rte_eal_dev_detach to break API and remove rte_eal_device_detach * Drop "bus: add bus iterator to find a device" since its not actively used * Adjust coding style to explicitly check against NULL pointer * Mark hotplug API EXPERIMENTAL * Fix exporting of new bus function symbols Gaetan Rivet (1): pci: implement hotplug bus operation Jan Blunck (13): bus: add bus iterator to find a bus bus: add find_device bus operation vdev: implement find_device bus operation pci: implement find_device bus operation bus/fslmc: implement find_device bus operation bus: add helper to find which bus holds a device bus: require buses to implement find_device operation bus: add rte_bus_find_by_name bus: introduce device plug/unplug functionality vdev: implement unplug bus operation eal: add hotplug add/remove functions ethdev: Use embedded rte_device to detach driver dev: use new hotplug API in attach app/test-pmd/testpmd.c | 2 +- drivers/bus/fslmc/fslmc_bus.c | 23 ++++ lib/librte_eal/bsdapp/eal/rte_eal_version.map | 17 +++ lib/librte_eal/common/eal_common_bus.c | 59 ++++++++++ lib/librte_eal/common/eal_common_dev.c | 143 +++++++++++++++++++----- lib/librte_eal/common/eal_common_pci.c | 55 +++++++++ lib/librte_eal/common/eal_common_vdev.c | 35 ++++++ lib/librte_eal/common/include/rte_bus.h | 111 ++++++++++++++++++ lib/librte_eal/common/include/rte_dev.h | 62 +++++++++- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 17 +++ lib/librte_ether/rte_ethdev.c | 3 +- 11 files changed, 496 insertions(+), 31 deletions(-) -- 2.9.4