From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f169.google.com (mail-wr0-f169.google.com [209.85.128.169]) by dpdk.org (Postfix) with ESMTP id C340A7CB1 for ; Wed, 21 Jun 2017 01:30:57 +0200 (CEST) Received: by mail-wr0-f169.google.com with SMTP id r103so111496227wrb.0 for ; Tue, 20 Jun 2017 16:30:57 -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=J+1avDzef2JEK25jHRrIkgjQfYjJioIQ3R8M2nN9xhyqX7jqP+75uSQ6kuzxqlzP4t Mu2o7k++UeMIcrX3KoDRG6F7UsrZRiNqMpWh7/dZkTQN1XbrwbIKMaStXNEJSbVHYC4f n/75f+it/rfcx34/1/tHxlwa2P5QJhLahbqpafUCjvX1RdS4vWOg44tq9QppiCO/sWE5 zexpExGKmxHkv+MdQ9ZNnKFToiHBHHo5EAch5m8snwLcOUwPnuj4Q0z9SPKnAG8s4XMR av/P0LyrW6YFbEmQU3UVcZaU+T84BlBO7svDX8wrfvMEK+A0CZeuUtESOsN8ocEsS1N1 52TQ== 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=O+jN1GkmNy4m2PkP/cWpEAhBTVZ2pyoi/Z+LWmUB4NEvFf3Inj1ALCM+VOkcPTMmS9 Y4hIfnmWw584btd3u8EKmtDURf6rYDii0L5TtVcylkA3QILugHdZVBtz8FV/AIBiC/zS DT1BWCm+GigbhSC+M5JGNoFLqByC7Q6LMt1kL0+jV3C49cBuuIXvB+vwM7UvP6My/S9B tUeLMDNtwhDjt5YGkDCTdQrsY/AjZVMP+6SB0J9zG5twK9HNRTqpEyO5Roe8v7C7MsBC 4lyhl9hYl+1h/k2MSvXp9kySZs4BbRBiKtxXHktVIW4EwsAocVftY1nYHWg15ZLvnH5u GY9A== X-Gm-Message-State: AKS2vOwJu2zkjBdJtFsmt99g4p2RH6/gonIbMcVpgfSqJJzgkT3Fv6qJ NVefWGKwhl+8CTkJu+Q= X-Received: by 10.28.71.147 with SMTP id m19mr4378079wmi.92.1498001456490; Tue, 20 Jun 2017 16:30:56 -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 w30sm17593338wrb.49.2017.06.20.16.30.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 16:30:55 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 21 Jun 2017 01:30:35 +0200 Message-Id: <83ea619f1b4487e83715c32197dab3ae5d34890e.1497999826.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 v5 6/7] 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: Tue, 20 Jun 2017 23:30:58 -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