From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 669D87CC8 for ; Thu, 1 Jun 2017 12:09:18 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id 7so151351806wmo.1 for ; Thu, 01 Jun 2017 03:09: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=9jHTfrurBtfsjCVkWE0i9QVDdgm1ceOAy94KUwbRP4o=; b=SlIdPQD/iPAX42OzvSDTftLh1k8M8RJEIBLx/2MK3mB5UDhNhFoqKMxEgLrAY6Ganx feQCHmX9I7cDp25eSOgr2TloMdRsLngWAdycZDHUYVKo8Mi7ZciHIDfd3H4m3vDBtj8z i1lN3ALWvUCbtmHdPFhFvUnPkdtE2L13Lx1W2UZ46qvEsBhGHhZ56b8T3hzsxqpBhRHu jN0yvBr0R7SJVyEGOJpLORfubTevv3rbOEYGrXyvXsfNXgl/TrKXl42p9ZRpTbHKtIVn EKO7OQnlld0IJmiDbD46nrgNmNbxbFnSKhJ15JAwPy70NnOnxMaVqOtJADKjSWfUOjEy kq6g== 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=9jHTfrurBtfsjCVkWE0i9QVDdgm1ceOAy94KUwbRP4o=; b=pkhV69W+CAY55PkNQR1mIJPZWi7HdJtpdErumlthoKpxs861M+5hbQXTGFYysUCVpW c4lnPeH5uR262PxoTSq4edf3I0hMqJmxu9vd8TtiU2AkWcDsLXOiv8SXUqP7l+ct5QKN l9wRrIPGh6Nbc3JHOANrwKR3DtLeAvKeg5kWwJNhttZr9DQ72GxOGslNzX5fJu2papwV kltI228ZMJlI9Atpa6CIy+LyBidyGKOohVJzwkkP5DMGivi9gUlaTDRp9/uiUPiByZ4g Gl0imJql8ohtGUDAPJBSWDNCS99v0NkY92drLjWtcpg7TOEm22avsPjJy7XzQCsYnI02 VSpA== X-Gm-Message-State: AODbwcCh2rV9xa4kN1eNDsBssxlPygFW8c2cWLQK4b3r9J06X3Gxyw7g zMaiENhn+9b0GDWGkWk= X-Received: by 10.223.176.154 with SMTP id i26mr633671wra.81.1496311757584; Thu, 01 Jun 2017 03:09: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 r10sm24305457wmd.9.2017.06.01.03.09.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Jun 2017 03:09:16 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 1 Jun 2017 12:08:58 +0200 Message-Id: <14019cc23b1a6292644fc4d0f6f811b5950a3054.1496311609.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 v3 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: Thu, 01 Jun 2017 10:09:18 -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 131e0c2..452f60f 100644 --- a/lib/librte_eal/common/eal_common_vdev.c +++ b/lib/librte_eal/common/eal_common_vdev.c @@ -384,6 +384,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