From patchwork Wed May 24 15:14:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Ga=C3=ABtan_Rivet?= X-Patchwork-Id: 24519 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id BFA418CF6; Wed, 24 May 2017 17:15:52 +0200 (CEST) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 30B147D34 for ; Wed, 24 May 2017 17:15:23 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id e127so78240656wmg.1 for ; Wed, 24 May 2017 08:15:23 -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=tltcn2ywrHrvFxp+NGFVK89mDN6drTPtS1SCyL843bg=; b=FCpVtrQiM1YEAVPOZwnbiISND69tpI7t6TSZe1rv4KMHImjSC30CHByPSJeh4kwg3q HF4kffACCfkvzUVL82LFm7JRNYejHHq0FHyrt9RA7dXfTM9iudYcU//Wgr/RqewH8MwU boRchpAhXY/Cfwvii0xpplptl6DD4NJb/ryZSjCKMNXsjFCBULZqvcQbq07c7JjcmmWR FAMfAG6r2JM4SdxG3Ak4T4wT6T7RRmbfS4tXpvB2U/dAgEqHzvyWtbMgw6qwv8P2N5oQ YZpCXov/dQeDWe8Xlljnc/SDa3kdcEhTXQ877EZQqjQBxL+AGMNoMYoyEUjY5FVUqAjO 2UwQ== 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=tltcn2ywrHrvFxp+NGFVK89mDN6drTPtS1SCyL843bg=; b=AL7CJ3WydYfiWNWtsCo3Na8vAgc5iQOgjzcVNm760tcTQxRcZhDlZcL3eqbdFZDS2s LJ8YGLFMp1ESUjaW5FCX0VhBhitQ7XfFoXjo4mjvSkpTmIfzNgCMQY1fEN+52ToJorjw AqRLKJ9KDMlzodvx1MufYE7sJ58ZTLiW/W+J3zp6xTp68n2VrN4MBsAf7hjCPjhfgPmk 0El3jetdNs+d53YKBgQZ7Ku9mR/8jwXdIRk509EP93EGyhMP9BnbPrqg5WWSqSWf5AvX snU264hy5krfz4D+0+Mh+IzyfwCneLvAr3zVY1yWQzBq7HKZmtsxJCQtwpzz6ezry7xw 9xwg== X-Gm-Message-State: AODbwcCltvrM9B8Bh8hpizN5iGrtqvdhdeRtituLnRa6HRJ18qp2n1LG AHFiMmrKp/zK+vOI X-Received: by 10.28.158.134 with SMTP id h128mr6006872wme.99.1495638922779; Wed, 24 May 2017 08:15:22 -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 a136sm4466145wme.26.2017.05.24.08.15.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 08:15:22 -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:14:56 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH 12/14] net/virtio: do not reference device type 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Gaetan Rivet --- drivers/net/virtio/virtio_pci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/virtio/virtio_pci.c b/drivers/net/virtio/virtio_pci.c index b7b3d61..cd48fb5 100644 --- a/drivers/net/virtio/virtio_pci.c +++ b/drivers/net/virtio/virtio_pci.c @@ -38,6 +38,7 @@ #endif #include +#include #include "virtio_pci.h" #include "virtio_logs.h" @@ -684,8 +685,8 @@ vtpci_init(struct rte_pci_device *dev, struct virtio_hw *hw) if (rte_pci_ioport_map(dev, 0, VTPCI_IO(hw)) < 0) { if (dev->kdrv == RTE_KDRV_UNKNOWN && (!dev->device.devargs || - dev->device.devargs->type != - RTE_DEVTYPE_WHITELISTED_PCI)) { + dev->device.devargs->bus != + rte_bus_from_name(PCI_BUS_NAME))) { PMD_INIT_LOG(INFO, "skip kernel managed virtio device."); return 1;