From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fan Zhang Subject: [PATCH] bus/pci: fix missing case for virtio-crypto Date: Thu, 1 Nov 2018 12:10:09 +0000 Message-ID: <20181101121009.86287-1-roy.fan.zhang@intel.com> Cc: thomas@monjalon.net, alejandro.lucero@netronome.com To: dev@dpdk.org Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 24A1A5F2E for ; Thu, 1 Nov 2018 13:10:12 +0100 (CET) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The recent change to rte_pci_read_config() caused virtio-crypto device initialization always failed as it has a RTE_KDRV_UIO_GENERIC driver type. This patch fixes the problem. Fixes: 630deed612ca ("bus/pci: compare kernel driver instead of interrupt handler") Signed-off-by: Fan Zhang --- drivers/bus/pci/linux/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c index 1783ec7f5..0220adc66 100644 --- a/drivers/bus/pci/linux/pci.c +++ b/drivers/bus/pci/linux/pci.c @@ -704,6 +704,7 @@ int rte_pci_read_config(const struct rte_pci_device *device, switch (device->kdrv) { case RTE_KDRV_IGB_UIO: + case RTE_KDRV_UIO_GENERIC: return pci_uio_read_config(intr_handle, buf, len, offset); #ifdef VFIO_PRESENT case RTE_KDRV_VFIO: -- 2.13.6