From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f176.google.com (mail-wr0-f176.google.com [209.85.128.176]) by dpdk.org (Postfix) with ESMTP id 0754E7CD1 for ; Wed, 12 Jul 2017 01:25:57 +0200 (CEST) Received: by mail-wr0-f176.google.com with SMTP id c11so9801178wrc.3 for ; Tue, 11 Jul 2017 16:25:57 -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:in-reply-to:references; bh=j5VM/kXz/pog6wjl5duDst8EYv8aPAmNLxGpdwfNxbA=; b=lS8eUR/F6A/oHHl2gdET5hjUWvDOCMSq0AH2pyignZJX6qoqBr6S8C2ft78GG/Rfqk fwjz1LHf8PS4emDaL/MjrfRw1jcxohy45Z4rQQd859c6Z8pwQ5th4nZydY/zUgzbJd6q l/GPGaRobi51gRnusstpXsh7/EdiWQDUL9Yd4jkMitDcz4fP7kVXFwKrp+s/F0Ts1BOj Luq3ym5qbEeduQVKNJPgdRt8jd94zBkXNrcxqVel/eqeOLxshAaMwKgdegXbGljmZVH3 RZ53+MNAFI2PLciNxbnQrnJZ9Jjka405mhgPXwOHPa5Wc0nCg3v19YgmO9+fkQmEn2ig Q2iw== 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:in-reply-to :references; bh=j5VM/kXz/pog6wjl5duDst8EYv8aPAmNLxGpdwfNxbA=; b=bU3jLdE6tMsvWCSk/7oavXY9H2B3QjYeM9n9Xqbh92x/Q9bsS6Br24ENX28cGpvmFl FinHci9CnWXP3TN0jWUAvzSITjDQA5r2LFOQq/k78CsQL/EGw3ii5cqt1QmzhvIvm9eZ 90wPqK008k8cYpEUXTL0cjHsP/YT+khZ2aDD9gXsa69o51lC9zjtAXs9g47I73EnFl1g 18Cdkugb5MlTh008MyAUUTivQhiIZrc1GljRG7Ec4JZgEp6pQ/LPKK8h3QXgly1L6C4B l2Jh0Bs2ZdbWe2JhVjH4CVhlVO52Wy6hHw1ZYbfS2S0dOI+8u7R7UTadJWXvNKxsiX3w z9dw== X-Gm-Message-State: AIVw111uxGjvxzhzO19XcrGQOQfKDD+dckS6xnSr0PuJ+4dgefYMk89H ky5ZW9WDZz6iQRPmnig= X-Received: by 10.223.183.40 with SMTP id l40mr1244879wre.154.1499815557370; Tue, 11 Jul 2017 16:25:57 -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 66sm407576wmj.29.2017.07.11.16.25.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Jul 2017 16:25:56 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet , Jan Blunck , Shreyansh Jain , Stephen Hemminger , Bruce Richardson Date: Wed, 12 Jul 2017 01:25:34 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v3 0/8] fix hotplug 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: Tue, 11 Jul 2017 23:25:58 -0000 Sending those fixes as separate patches as they stand on their own. This series improves usability of the hotplug API and fixes a few issues with existing implementations. The hotplug API can be tested with the fail-safe PMD[1]. Its documentation describes how to declare slaves and how to use it. [1]: http://dpdk.org/ml/archives/dev/2017-July/070529.html v2: - Add a new rte_devargs function taylored for hotplug operations. Upon device hotplug, the device is implicitly whitelisted. This configuration should supersede any previous existing bus configuration. - Merge hotplug add and remove fixes as they are now tied up. - Do not return an rte_device handle back from hotplug_add. v3: - Further explain - the new rte_eal_devargs_insert function. - the hotplug add / remove fix - the PCI device name fix - Add comments to pci_name_set Gaetan Rivet (8): vdev: implement plug operation devargs: introduce removal function devargs: introduce insert function eal: fix hotplug add / remove pci: use given name as generic name pci: fix generic driver pointer on probe error pci: fix hotplug operations bus: remove useless plug parameter lib/librte_eal/bsdapp/eal/eal_pci.c | 4 +- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 + lib/librte_eal/common/eal_common_dev.c | 59 +++++++++++++++++++++++-- lib/librte_eal/common/eal_common_devargs.c | 31 +++++++++++++ lib/librte_eal/common/eal_common_pci.c | 57 +++++++++++++----------- lib/librte_eal/common/eal_common_vdev.c | 12 ++--- lib/librte_eal/common/eal_private.h | 5 +++ lib/librte_eal/common/include/rte_bus.h | 6 +-- lib/librte_eal/common/include/rte_devargs.h | 31 +++++++++++++ lib/librte_eal/common/include/rte_vdev.h | 7 +++ lib/librte_eal/linuxapp/eal/eal_pci.c | 4 +- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 + 12 files changed, 177 insertions(+), 43 deletions(-) -- 2.1.4