From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f181.google.com (mail-wr0-f181.google.com [209.85.128.181]) by dpdk.org (Postfix) with ESMTP id C9A547D01 for ; Wed, 24 May 2017 18:16:12 +0200 (CEST) Received: by mail-wr0-f181.google.com with SMTP id w50so58063662wrc.0 for ; Wed, 24 May 2017 09:16:12 -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=qMOv9gWnPyqYc4r8Rz2dmaIjBcSwnPYNRb9Xmr0y3zOM0yqXN9q34Wwkthej66ki+R b7kIO2QwsbTEa+eFVfCzoCRuPIR0ch3eZJ+biHIyzPzi4nQOxcOd2zLBTROhUqF7YwD8 C1xIVMhUwfW0vQCnQJ0nMz6JPNeN2LqkG8EL4K763IoU3xkxfM4MArk00SAhDy/ZucMZ lqtNgt0EWqmvQTsgjarbLjfYH4UkeUvPGF98z5miGQU/3N5m8TFGKpWWf48UQWqIhw5M OcTD8JusOlqXCCviSFZPDKShl5zBYbP5aR3V1RXaeNQJexbS3FfNnyE4vtvwcJ9UnJta ousQ== 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=kd53nt8oKh+RT0Xk3iTgzLqnSBiVMgGdHCTk27ghe6gj/H5h7xygLEOscFyauEyQWW iaW7SFvr8/GUONjaYys842lGL7q/t/M3RdlwgwE8vJruxGMDaRkw7ESwY/OUYEIoPBOl fJQXThojNbclYQjKaqSYfjiUrvujkTnzAFWKQwMZ7SgJv+HhCU8I1HjAGDMu5Waritp+ 49vFjHosH/wE/U9T4Xs2Fi05bBoMYRNiL7Q+af/f10PVHDPPmAJr1aGvwzOiQVbnq2N4 TgIBWSA4HOGLGIwANEWLtFMTjiRljTcP8s5hMMS4tbHfnsaO/r10WWSCMEf5FH4vyKZt Tgwg== X-Gm-Message-State: AODbwcA1hshwFnk6qZGKAeo0nfjvLCfwneq3atzloHqsqpgTznXjRJAJ UEwmJeDnwjNBW4Ow X-Received: by 10.223.136.75 with SMTP id e11mr21078017wre.14.1495642572609; Wed, 24 May 2017 09:16:12 -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 l7sm7783055wrc.52.2017.05.24.09.16.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 09:16:11 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 24 May 2017 18:15:51 +0200 Message-Id: <8d5d806dba96e5849e019380b15ea6428e260eec.1495642202.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 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 16:16:13 -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