From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f179.google.com (mail-wr0-f179.google.com [209.85.128.179]) by dpdk.org (Postfix) with ESMTP id BC2F27CB9 for ; Wed, 24 May 2017 18:17:12 +0200 (CEST) Received: by mail-wr0-f179.google.com with SMTP id j27so4272040wre.1 for ; Wed, 24 May 2017 09:17: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=tltcn2ywrHrvFxp+NGFVK89mDN6drTPtS1SCyL843bg=; b=IoUPZbhHOfRfAqc/HlRYVQWW1U59POmrXJUSMTF1huwJg/h4IXvViscJM5Z0Kd4neQ Hnbuw5aCjaZZFT+EM6NESIU0b9MkzaEAn6jLJtn4wjk/47f+OrcfQbwh0lAy4HfgZmsR 3/IS60QhecFfjVdP3HYOz3hkRwfDLPTeewauDlQb6J07rdzO9Np/Fndzkxw0oi6UPZdN 3yhREiglZq0D9AhKp84QNl7DFbl9e2hUB6viKu4ysbHnxyvt6Zp+NN2wIVwHcnsU+gWD wfl4TF+dz+mF5OikZn5ctod3LELsfnDx7oj95gmi1o94cszck/d+Qrk906jCDpzaR0W8 peZQ== 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=AFFjKnnFUnhQHeyQUE8lhtFeMHVC9Oe81Pf8RqdNuSon9QEqyRUy869nInwwQf+Iyn tKERxgmC/kvnazhw3nLVdmDQKnny0eEzLkAXkbrpqjEjBuB8ousCZyNgfmmBBOcQ8xCG 4dK3U1mkrb/8ZAf41iug5VhuD+E3O/g7Axrjq4ScbzWd899nhTQQnpTZGNAYvtz3dJix 4v5dX8FpgKfcHozRv2dMUwLMjShtJcyD11Zy7Ev1MMBMkXRTT9U2/IlSQpGAR7JxNEBR k0QRCYTNhmdk/UYpcAY8yzKTMI4lQYAQ1I1iAsgpsNlrwaJTQ2mVoCRmAnMRxu3B9gPJ k8Zg== X-Gm-Message-State: AODbwcDrjRjpvHxQPcjqgzTr/SVJUUCavaZZdtDEoPwKfP27rC9044Xr S5NZVRnpjP5BwzJ1 X-Received: by 10.223.149.68 with SMTP id 62mr19964331wrs.7.1495642632356; Wed, 24 May 2017 09:17: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 17sm5816909wml.32.2017.05.24.09.17.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 09:17:11 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 24 May 2017 18:16:47 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v2 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: Wed, 24 May 2017 16:17:13 -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