From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id C156A7D0D for ; Thu, 1 Jun 2017 12:10:53 +0200 (CEST) Received: by mail-wm0-f50.google.com with SMTP id d127so53581601wmf.0 for ; Thu, 01 Jun 2017 03:10:53 -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=ulHoUwMGLrsK08sbzCFHgoUZPeMGykSAsI/7UQQO8THxHUFfwoOSOubUcao1gGccLs MC05xiE+fJzRoFyjLj2y57B6pt5U+TRgd5PnZRUTB7YtKkX6beJNBJeNjQLLspcyiT0y NG9RvC5S/PmEI98wWm+JZiI0RPzUbZlfY2JzXVOhNabjCQgcJsQPQIVdSAwob4NL5g0p /tlrckPDpap1pKhYkjIPpo7rP1ea2Jk+WQqr9HB1Lm1qpuTszNiR+uferPxoyugCTbJK yv7T/TuWLIRad3TOAlFdN6tvcsd1FymCh4EGcV4vnloaFgVI+WmmDXMqxQJygX0aoiES 6qtw== 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=GJUm3dTjA8Kwb5wy7yj1AK5qgJUa0jfQhsaERqm3fq04TZEJNxg0iaesJwkHMjq46o MbcOorv+X8eRcjQJu0mH0hQsgJDR+VRffVjW0sBqhbvmQIlbtawy8oGIJGa9e2FyuqH8 T1ePpM1EK4TB6ELGmH4Z7oNekyCowewFWhNQcriYuo7HiB3pshHiaXdjsMiS6zInqDf1 a+t0RHDuLGx3ofL5k1hiPFNiP/cpkCVpFB3LtMFsCvJ6c5Q/abMKdtzxe6FCVBPxhhCd H+tyutrm2ffBTrr4lA7e5LP7kzA4tcYHW4QwPn4tNg+Q3qKzhWcybKmKQDjmwngouERC Uqaw== X-Gm-Message-State: AODbwcAgHCUwkgxCGsR11HZh3MYojdYpPYL9o3xWE2Ba7Kjmor6hyyrj KVqGMMvK51KgM1mGGHk= X-Received: by 10.223.136.252 with SMTP id g57mr635977wrg.191.1496311853266; Thu, 01 Jun 2017 03:10:53 -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 y19sm1022569wmh.21.2017.06.01.03.10.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Jun 2017 03:10:52 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 1 Jun 2017 12:10:27 +0200 Message-Id: <9a19313fd404ab69604c341aea3ede0127eeda40.1496309846.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 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: , X-List-Received-Date: Thu, 01 Jun 2017 10:10:54 -0000 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; -- 2.1.4