From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f180.google.com (mail-wr0-f180.google.com [209.85.128.180]) by dpdk.org (Postfix) with ESMTP id CB94D7CC4 for ; Thu, 8 Jun 2017 01:57:35 +0200 (CEST) Received: by mail-wr0-f180.google.com with SMTP id v104so12032891wrb.0 for ; Wed, 07 Jun 2017 16:57:35 -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=0wHn/LzH01OREBlZUbF4JWc0JSTym8SfBXb8Bv3ixZBBYWIz2Vix/eviWOF5akqkik iWGEBxQeMYR/pKSMSPc1L4ymca1f73m6SeqYKxykWLg7Yf+p+0wJHx/gGizvVmDTsgcQ kpZo3A3RmLbOkyp1E1eEbw6XASzOMmqXTugdfaAusuPNQ10jif6YgKQJPYd500z1fE44 roML+c341MgKh17vssYQFrDuEe5ZAkZ60ZPH/quQ8U/vxIgeLmfH3M+CzYg3PPMfy5os lzXbedVqK918/W2M5TW+ZQC79PxTwEQoEZVBOCXELhpf1vlSbBpglTCkNEa4QaRxkqX0 N34A== 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=j6BvX8z6tEZRhdsv7R8VBrAZNJLQmkeD2hjspjMEJ7lH6g0189os7odnmphPQOPrM2 /bz9OLy1mSjTKEHIQjt/SRrQAvL6mVsWDEb7sXSu/Kr/KTUV/J89t3Bs3QzFkTEpg1Rr TthHU1K9N448os0JLLLuawHRupYqDDe686LiHPz3BUvwe9WTKLw7kBTh6WbyLHUPGXbd JEAPmQh0nxQc0I7VNMPL9dCdQgjVKv3Mmlbso0K5Z6qBVu7VTMdYqe06UeXYIHR+64pu LlmS9Z5uaUKDseoaChyvYHdsA+/nHRxA4qmsr7Yb/sTZSfNf2yyrtz9EH5V6GJHciUbU VETg== X-Gm-Message-State: AODbwcBlfnlh89jKEcUevLor10qxqdi60HB2YFuz4QFD1055sg5+UMAZ yfusmERByKsg5JemKkI= X-Received: by 10.223.160.68 with SMTP id l4mr26036677wrl.130.1496879855243; Wed, 07 Jun 2017 16:57:35 -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 185sm22397056wmp.1.2017.06.07.16.57.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 16:57:34 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 8 Jun 2017 01:57:00 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v4 14/19] 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: Wed, 07 Jun 2017 23:57:36 -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