From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f182.google.com (mail-wr0-f182.google.com [209.85.128.182]) by dpdk.org (Postfix) with ESMTP id 3E5587D1C for ; Wed, 24 May 2017 17:13:01 +0200 (CEST) Received: by mail-wr0-f182.google.com with SMTP id w50so56964561wrc.0 for ; Wed, 24 May 2017 08:13:01 -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=8JAlHI8S63voiKrrWipjotS/y6U62x2jodZMkqCJD38=; b=zu8UjDHR7OLwROGFJ1m+p2QmBK+ZXlWD9bJXzCbmV0/nony7F1kTz1FUyteZHAnBbi ZkVXiFphgQbZS5IvbTCRuFpB9ypzc1xRE55ld9aBP06tJSP8YwLT2BbH9jk/kiTwWsmT DNxqES5MLshi5c7PTWroJuxuVonGsOOXZ9um08e1bQOd0DXd9ewaGEwqZhn9ggTk1qnS quZbeStnhQKCKNGQTJgnk757pjCbjkOuSMw41yMmta3fDyafVvXs1Zlb/RJJyJTIT1h1 0DVIxlkQ0TqBg3mKP5CAnVng/q7dnkyfqr3x6xf0wSIdB5adBsuFjVxR0mVnkX/194cP ljqA== 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=8JAlHI8S63voiKrrWipjotS/y6U62x2jodZMkqCJD38=; b=S0vN96JoL0WHUdWKDw9YSV9EwjCz9s0YlgjT9I2LbbTyod18jAXSx+npBVpg3LwHpU xQfVFyUqRsur5S5GdoP6jsizdXAvZ9q1RaJSUA6ByWd3fw0okTCMSt2+DC1mKiRNetTG elnUgH8StVwWiNxgOStdCMSWLrC/UagWlujg4pjij/EENHFV0SjvTiM1zXZ62npKYy6M ljZNjVVMMVkDhyNWVxQolyja92hpfLux6fKyqm8NZJPh2KrF6vzFFCzVGVQxQwaf5g6K evIHTfanHFf0AQ0SoEn5T6v0Sckva9Xaiq52WOVZWGKfB6Rho8fdO56wuDiEXIr+Yjoz LQXg== X-Gm-Message-State: AODbwcCmdukRQM/JjWVj0U+UbYvfoXc3mG/EB/EHf0m06Ca+hDenCfUT F0FmD5YeJ22SfpNC X-Received: by 10.223.170.67 with SMTP id q3mr23940444wrd.19.1495638781634; Wed, 24 May 2017 08:13:01 -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 9sm5633351wmh.17.2017.05.24.08.13.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 08:13:00 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet , Jan Blunck , Stephen Hemminger , Maxime Coquelin , Jerin Jacob , David Marchand Date: Wed, 24 May 2017 17:12:40 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH 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, 24 May 2017 15:13:02 -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 9c9a1de..5580295 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