From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 748871B4AA for ; Thu, 11 Oct 2018 23:03:00 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id CD0E521E3E; Thu, 11 Oct 2018 17:02:59 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 11 Oct 2018 17:02:59 -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=A5yQNqAVM3 A+2hJ7hqnVmwnyrO4Akh2embAnRHKvm9g=; b=mGAGMK6XDwfQsvUmqIxRBjmXEU LyYqTMLTuU0OZ3U9VwQgQWEP23Qb3+izaMJz6eUm4YSSpjxhJCAVKPskmNXbEu3g vCGiTR+qUzxwMV9NjF8SCjCeckTPUa6d+ttdWd7BJ9Fi4rH9vxnJvkSRaIVmgGea pVDdCUhcfiAqzdPtM= 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= fm1; bh=A5yQNqAVM3A+2hJ7hqnVmwnyrO4Akh2embAnRHKvm9g=; b=N4xd0TKq WvYlfdsfiCFteNS5dzmu4R67ZHTYv+itE0WZwt6T8vIB8S+Tfn3CYWZwDdaKacgI P+gRv91wBaf6NOAi8aD6douczmT1KqwaKRuctvGuRt2Egaktx6k+nf7eavE3M3I3 kBzElXeAKkWSTZkpPb3HYI+pOu4r7S6iSswD2mT3xNIZDC1kt5ajAg7bCCbbVG+q WVTXgmGfzYuYBbYEOxxJzKqgcj0zuUnuYOJCqvnyPg9rIxCBNehHdQ7zoAS4nPQV +zLuupwM7zYo9fqmeqICdVzqYCkbGW/sHQC8KhNHDAlCAxsD/sRbYn0bj768YFPe o0EuY47MpJG/PA== 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 45459E455F; Thu, 11 Oct 2018 17:02:58 -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 Date: Thu, 11 Oct 2018 23:02:47 +0200 Message-Id: <20181011210251.7705-1-thomas@monjalon.net> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180907230958.21402-1-thomas@monjalon.net> References: <20180907230958.21402-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 0/4] eal: allow hotplug to skip an already probed device 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: Thu, 11 Oct 2018 21:03:00 -0000 This is a follow-up of an idea presented at Dublin during the "hotplug talk". The idea is to ease probing of range of ports attached to the same rte_device. I becomes possible to allow probing again the same device but with a bigger range of ports in the devargs. Instead of adding a parameter to the hotplug functions, as in the RFC, the check of an already probed device is moved to the bus and enabled PMDs. It gives flexibility to drivers for managing range of ports. Changes in v4 - after Andrew's review: - remove access to rte_device.driver during probing (patch 1) Changes in v3 - after Declan's review: - return error in all buses but PCI - add a PCI driver flag to enable feature per driver - return -EEXIST if probing again is not supported Thomas Monjalon (4): ethdev: rename memzones allocated for DMA drivers/bus: move driver assignment to end of probing eal: add function to query device status eal: allow probing a device again drivers/bus/dpaa/dpaa_bus.c | 3 ++ drivers/bus/fslmc/fslmc_bus.c | 3 ++ drivers/bus/ifpga/ifpga_bus.c | 21 +++++++------- drivers/bus/pci/pci_common.c | 38 ++++++++++++++++--------- drivers/bus/pci/rte_bus_pci.h | 6 ++-- drivers/bus/vdev/vdev.c | 12 +++++--- drivers/bus/vmbus/vmbus_common.c | 5 ++-- drivers/net/i40e/i40e_vf_representor.c | 3 -- drivers/net/mlx4/mlx4.c | 1 - drivers/net/mlx5/mlx5.c | 1 - lib/librte_eal/common/eal_common_dev.c | 14 +++++---- lib/librte_eal/common/include/rte_dev.h | 18 ++++++++++-- lib/librte_eal/rte_eal_version.map | 1 + lib/librte_ethdev/rte_ethdev.c | 5 ++-- 14 files changed, 84 insertions(+), 47 deletions(-) -- 2.19.0