From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f178.google.com (mail-wr0-f178.google.com [209.85.128.178]) by dpdk.org (Postfix) with ESMTP id 862567CB4 for ; Fri, 7 Jul 2017 02:05:02 +0200 (CEST) Received: by mail-wr0-f178.google.com with SMTP id r103so24313352wrb.0 for ; Thu, 06 Jul 2017 17:05:02 -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=uJXqTxp29PkvBMFEzdMKfi2/LK/EWlQTjZo7v00iLj8=; b=or/srw3LDa9a8FHpvHbpDJDU3Cl06jDM3q8C11ENipXbUSF4vAKFF4Zouvj5qzK7VQ cXOmbi4sXjWB036qJVmONsFE2LpD0432D7sSlmb+6CEoBDSUt/RF14mz39Q3/iY5mHDh 9n5SymYfefTl7rXaVcvd32X53+16BbUIBtdS1UIXO9LxC1taPZpMzvd7brSCCM7cTV2J WAo8xIRZlaNJKAD8CQrpW2thQl8uWtL8pIfQO1CjjkIIgRr+QHQtJKOarliph33VeX3H BXWAb25A1HBIWhDStv7iyBY0suGp977jd8CA+z8ikFe9m0k2Zbfx+SJnokLPHO6OmFhv rPbg== 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=uJXqTxp29PkvBMFEzdMKfi2/LK/EWlQTjZo7v00iLj8=; b=MQASkHHkKVdw6KWG2zqzD9DQQnX4NQ49EKLCqZ7goYj2g6cJtweDO5agLyQPogJtEF ZkLBeiPuzDy82qz9w81RKLbahzhYDqcDk1IkNmNEuz405s6ejxLSiZGp3HGMdmvAnSyQ kJtmj189YQzdv4N5i2f97gbreSbB7AN1qhrgZszYyxydFBq/6qOMRllM4+T2The5vc/E BNV0ibCH0zSKVMMG1Civd2+eu2mF1QMSDOxA0F+RTHTuaR6Jcvlxql9m0IuH2KcPvLy4 zFHl5x++1F9PlVbacSXCnfNNwQiV0j4J3wCmBB/6JfqmtZdDvBfZ0C+gurx/G4W7pq7f 60rw== X-Gm-Message-State: AIVw1117aEgXjKEO0CwCwrH7AfO9ZBMtslFzHbA1qG3ae2Hm+xvGb5DV osRtXYDv8hI5Jv0TxKc= X-Received: by 10.28.18.144 with SMTP id 138mr252258wms.118.1499385901976; Thu, 06 Jul 2017 17:05:01 -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 b197sm1111520wmb.4.2017.07.06.17.05.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Jul 2017 17:05:01 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Fri, 7 Jul 2017 02:04:31 +0200 Message-Id: <997b20977d5095275e36d770b2d498992bbd8495.1499384591.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 v7 14/17] 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: Fri, 07 Jul 2017 00:05:02 -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..e6eda75 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_find_by_name("pci"))) { PMD_INIT_LOG(INFO, "skip kernel managed virtio device."); return 1; -- 2.1.4