From patchwork Wed Oct 3 23:10:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 46000 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BF0CD1B10B; Thu, 4 Oct 2018 01:10:56 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 7130C1B0FC for ; Thu, 4 Oct 2018 01:10:55 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 08563210FE; Wed, 3 Oct 2018 19:10:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 03 Oct 2018 19:10:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=mesmtp; bh=OdUdhFxRkJ sMOcSZjbW1ycJU6ao5aeLm5xsmm18bp40=; b=krzglJ54z6/SOPE+JmQ+qcGZ/C +xxeS9p7tn3Ctp3dhddnLorPT0mx26udhBEs+lu39QYTkuGf/cUT2+m+UtBq8/cu W+MpJeOlgP+XVmNedwkw5X5edQbOK84o1D/TQJg6CpkOhW1y4avanmVm1nEt7O4T 0TVs2nsDQxE6KP4VI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=OdUdhFxRkJsMOcSZjbW1ycJU6ao5aeLm5xsmm18bp40=; b=kfeNRHX/ 5JBk8G0IJLlUEqUaoVz7mODEuEIP50QkPFYiyeHabR9U9/xjtNDDWltlbHJobQkd BexoHcbIz9Jh1b4ffsfHXbQfx/szjeM7Fo2pF32r4UCemBNJpxi0rhV5s4s+t4hF dlnYoPRgtjJ+LX68HO3R+fA5cYNqydbaYYV9ZlM2L1Qoc0BFo4lZsL1X3Y8zctj0 Gq6VdiJzUqMxvNZBVjTWBmi58I+nurM6/hUAFtKa3508r0r5eILjWykzqkTLyphv vSl1sfCReHnK3IEf88W+WOxYE5rDH4+lozaLKK9NBJxmtRcJ971HihfmcSz53Cac 554Q6aRIQRFyMA== X-ME-Sender: X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 3F342102D6; Wed, 3 Oct 2018 19:10:53 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: gaetan.rivet@6wind.com, ophirmu@mellanox.com, qi.z.zhang@intel.com, ferruh.yigit@intel.com, ktraynor@redhat.com Date: Thu, 4 Oct 2018 01:10:41 +0200 Message-Id: <20181003231046.26772-1-thomas@monjalon.net> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180907222727.20521-1-thomas@monjalon.net> References: <20180907222727.20521-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v5 0/5] eal: simplify devargs and hotplug functions 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This is a follow-up of an idea presented at Dublin during the "hotplug talk". Instead of changing the existing hotplug functions, as in the RFC, some new experimental functions are added. The old functions lose their experimental status in order to provide a non-experimental replacement for deprecated attach/detach functions. It has been discussed briefly in the latest technical board meeting. Changes in v5: - rte_devargs_remove is fixed in case of null devargs (patch 2) - a pointer to the bus is added in rte_device (patch 3) - rte_dev_remove is fixed in case of no devargs (patch 5) Changes in v4 - after Andrew's review: - add API changes in release notes (patches 1 & 2) - fix memory leak in rte_eal_hotplug_add (patch 4) Change in v3: - fix null dereferencing in error path (patch 2) Thomas Monjalon (5): devargs: remove deprecated functions devargs: simplify parameters of removal function eal: add bus pointer in device structure eal: remove experimental flag of hotplug functions eal: simplify parameters of hotplug functions doc/guides/rel_notes/release_18_11.rst | 10 +++ drivers/bus/dpaa/dpaa_bus.c | 2 + drivers/bus/fslmc/fslmc_bus.c | 2 + drivers/bus/ifpga/ifpga_bus.c | 6 +- drivers/bus/pci/bsd/pci.c | 2 + drivers/bus/pci/linux/pci.c | 1 + drivers/bus/pci/private.h | 2 + drivers/bus/vdev/vdev.c | 9 +-- drivers/bus/vmbus/linux/vmbus_bus.c | 1 + drivers/bus/vmbus/private.h | 3 + drivers/net/failsafe/failsafe_eal.c | 3 +- drivers/net/failsafe/failsafe_ether.c | 3 +- lib/librte_eal/common/eal_common_dev.c | 89 +++++++++++++-------- lib/librte_eal/common/eal_common_devargs.c | 41 ++-------- lib/librte_eal/common/include/rte_dev.h | 36 +++++++-- lib/librte_eal/common/include/rte_devargs.h | 81 +------------------ lib/librte_eal/rte_eal_version.map | 10 +-- 17 files changed, 128 insertions(+), 173 deletions(-)