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 A20443252 for ; Thu, 8 Jun 2017 01:56:30 +0200 (CEST) Received: by mail-wr0-f176.google.com with SMTP id q97so12018865wrb.2 for ; Wed, 07 Jun 2017 16:56:30 -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=O44JBJoVyRx6FAQ0TfIqUx+rCa2fMRwcNBTB9dr/xeo=; b=yZ1+E9vSBVi/83LirOuavu0NpQ5jm8KoDkY+8qvaIa4CspcpmoV4yrdvK7LGZPR6a9 7I4O9xkbdcB/VLEhXf1xOIzJQiisqmf09GNIApseiicffvkoWNzg+de8th+c2TUXGkti cF/7hwoLPbiEHooRGlMvElC4nGOhmE2lpznwZUAOPwziut5gQ8s73JhnGDm4ugzNJCuO btC1QqzpIBMrvAgEpvg2pHIBXmsmZCtuEPaJd8fLB771jhX6RpvqS9XG37SDBMYMc0qU digDT8n9Wgqn6XlSf15sy8qCr5tW/GjnhelBdsW6ppLFdoWet9FdflI0g1wNRNnMqVwD in7Q== 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=O44JBJoVyRx6FAQ0TfIqUx+rCa2fMRwcNBTB9dr/xeo=; b=lnJySlepPLxi18xIcEV1IAue9o9QW6MlA3R2leNUUEdxW9PadBV2TYnRDQJ4da+HlE vNeEFdEZBycmWHX0sJsGWH59jeuUvwgvkuasOT566lBNL8gN5OsswWr5JHDYQJqhMO4T ISWmSZ7AioOYFHJKEg5Pf9e8OFdjBFYypwsGZDXZtAqNbVu2bQpJqXC86+b59qRixnMF B8XSWEgof4PrxXvzm64nVatcn+2Lok2QREkma3m9vytZ3hEei4L0yVCp2YxAQ+kFzHrA fOzHNZjTLWNiGSz1X1P63sNSynzYkSowOPWMy12/pdnY2V+7TqfFLDpOZ5BD0Jmc2Rj5 jJbw== X-Gm-Message-State: AODbwcARsGoEeYig/EaRQjoyYZEUQ3fQxYY1C6xlWqYc0ybcOmmuoxqH one/TSmZgUBI0gHPO24= X-Received: by 10.223.136.103 with SMTP id e36mr21875398wre.73.1496879790032; Wed, 07 Jun 2017 16:56:30 -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 m40sm2624808wrm.4.2017.06.07.16.56.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 16:56:29 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 8 Jun 2017 01:56:08 +0200 Message-Id: <35feca7acd78c56ffaf4ea1fb87ba6cafa758871.1496876810.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 v4 8/9] vdev: expose bus name 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, 07 Jun 2017 23:56:31 -0000 Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/eal_common_vdev.c | 2 +- lib/librte_eal/common/include/rte_vdev.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/eal_common_vdev.c b/lib/librte_eal/common/eal_common_vdev.c index 8dd4c88..221146e 100644 --- a/lib/librte_eal/common/eal_common_vdev.c +++ b/lib/librte_eal/common/eal_common_vdev.c @@ -404,6 +404,6 @@ static void rte_vdev_bus_register(void) return; registered = 1; - rte_vdev_bus.name = RTE_STR(virtual); + rte_vdev_bus.name = VIRTUAL_BUS_NAME; rte_bus_register(&rte_vdev_bus); } diff --git a/lib/librte_eal/common/include/rte_vdev.h b/lib/librte_eal/common/include/rte_vdev.h index e6b678e..2d02c68 100644 --- a/lib/librte_eal/common/include/rte_vdev.h +++ b/lib/librte_eal/common/include/rte_vdev.h @@ -41,6 +41,8 @@ extern "C" { #include #include +#define VIRTUAL_BUS_NAME "virtual" + struct rte_vdev_device { TAILQ_ENTRY(rte_vdev_device) next; /**< Next attached vdev */ struct rte_device device; /**< Inherit core device */ -- 2.1.4