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 139E14BE1 for ; Wed, 21 Jun 2017 01:36:22 +0200 (CEST) Received: by mail-wr0-f179.google.com with SMTP id r103so111606833wrb.0 for ; Tue, 20 Jun 2017 16:36:22 -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=wOEz2eD0kt4Dn/Z9+udHUxXTwPzHwZL5nnqhkyj9gj76IJ+4hSUTEf/GJjj7K3R5GR alBBkYxUOhLu+L3pLfSi7L6oqdcxb5Lba1XZ3rpr4u/5jnkorFqr1cqLOv7yUciRmxyf fhiTyEnmQ5r6b+XimPBEUZuXFyi8V/XAIxxxPbmoRGZ9aUoimddP5GKfMh+MBHvz3Vf3 YicDB0m1TLqveTzFgz48xhq2pDswAzNIDHNpARgT2JxP0cmB4aTn96eCho7peYTyQsuX 8npn/u73SaXiUaG/sJlxStdPuWnrizNkz4l6L2t6FCANq0hBP04q68InVMafHsOz1rOO VAtw== 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=QLSGv6HAo/phb++FjuXp4McvQdjfZGOyWFA5rowRZjXfMQ0YiPo9LDZDA3hYLS9h/N 7YwzneB763cwWPbArZUFMunAB62IL1AgrgevIIyMOHCtLhlLw1EVMhxFzkWxiQ1UnacQ xmZydwXyyCpyuDCk9/hYvzOU73uXm/QyEGXS1AKgmaYCOmXZXBaHw0k9MCqytHv73Hr6 yo2qkMzeIv1HA1vy6Hm29Li5Gvy9osjLD8NyP7HV/y9/CkgLUVsTXGNNIGCrQGy+93ua 4EzSBV6iulhzim06NsOy6sBaghV1URBtfnvqrGmDDbNd6O/E5I/Gowp9Gemf3sdq44S5 fkvg== X-Gm-Message-State: AKS2vOxHiBxsJoBQNRlmzbtnMJOk5KaTCxA1F7l6VwCtCDtQBMvD1NWk e00ffVQE8lxnyzzC3V0= X-Received: by 10.28.198.66 with SMTP id w63mr4226898wmf.110.1498001781489; Tue, 20 Jun 2017 16:36:21 -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 f45sm6463684wrf.2.2017.06.20.16.36.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 16:36:20 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 21 Jun 2017 01:35:48 +0200 Message-Id: <66ef428e7997e1467be74a0ffd21901778bcd48a.1498001626.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 v5 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: Tue, 20 Jun 2017 23:36:22 -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