From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 314575424 for ; Wed, 31 May 2017 15:18:18 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id b84so118891559wmh.0 for ; Wed, 31 May 2017 06:18:18 -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 :in-reply-to:references; bh=BktzePpWx5qUtyogwduVoXfp1KUWwKxnFahbW9sVacE=; b=HXtLjPN6CH1otB3uBFp93MoXTIblrui3tWoxd3OIbHgI+M4Wcr9ZNHfrZ+b81xRynU YXj9ZQ9TYYvOeB7K3im2YR7+sQtoo5nbvVD577x+6UzvRo/0YZj2f6RJO9MxXzr4UsYX RdEI93+HTGu/Pb+DaAbDcI9EgEwgCvEwRoCP7GQiFHXM+aIc31pO4Nk5TrmzpeGvFTIH iHs8fxmVO1jr37eTiZu2uFDMwnx0lbsc7fGFK6SmQT7Gf6nymSy1yxo1cbdMhpjtYmE+ 0uWYbPf64OjcAuD5n0n/ga6RGBYFK2sdrXhLAFbtlD4lOTfRz6rIHrRYubRy75vWp9Iy 0clw== 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:in-reply-to:references; bh=BktzePpWx5qUtyogwduVoXfp1KUWwKxnFahbW9sVacE=; b=VrcLw7k/enuciEUWp4lpiY9nJxLVD7zpdIPQAfZw6AQvoLhKnOOm1RBRCwIiP2B+B5 qtrmt/LxtwUatT9NoBuF83hMWgIroY5GmnrqCQSbdWUcHlLBJyb6L4AcaaxtqaFp8eCB qfQD9XU6mKfION4HfvhGzwLxGlLxU0nozqyLwTSpDYdpkXSC1Kji+Om5gXXCoDiM6/Xu 0EFZIefskBXFW3ZGYrszaTr5gerlLV4/fhbYnDZNIgTnmPX1fuK27EezUtVjfcfyqNCx YFgDefCD4zgLzI76ZEVfc6Rxle8wa1g4QxSo4GH3M7EjZGsG+DQMmJPeJoJFx1BnzOBg c66Q== X-Gm-Message-State: AODbwcCDyaKnT3m7ERyfgp7VCyqpU2i0j/H08H49nbp/yYO78UJ6CsDK mV74YEpF8JdTxzKZ7AA= X-Received: by 10.223.176.214 with SMTP id j22mr17178869wra.32.1496236697571; Wed, 31 May 2017 06:18:17 -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 g77sm10045744wmd.19.2017.05.31.06.18.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 May 2017 06:18:16 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 31 May 2017 15:17:52 +0200 Message-Id: <1356dd5e147f842e63e91c339e6d346e651973c5.1496235017.git.gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v2 07/11] vdev: implement hotplug functionality 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, 31 May 2017 13:18:18 -0000 Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/eal_common_vdev.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/librte_eal/common/eal_common_vdev.c b/lib/librte_eal/common/eal_common_vdev.c index 46f2b74..813955e 100644 --- a/lib/librte_eal/common/eal_common_vdev.c +++ b/lib/librte_eal/common/eal_common_vdev.c @@ -350,10 +350,17 @@ vdev_find_device(rte_dev_match_t match, const void *data) return NULL; } +static int +vdev_plug(struct rte_devargs *da) +{ + return rte_vdev_init(da->virt.drv_name, da->args); +} + static struct rte_bus rte_vdev_bus = { .scan = vdev_scan, .probe = vdev_probe, .find_device = vdev_find_device, + .plug = vdev_plug, }; RTE_INIT(rte_vdev_bus_register); -- 2.1.4