Hi Thomas, You are right, the problem can happen with any PMD falls into RTE_KDRV_UIO_GENERIC and RTE_KDRV_NIC_UIO driver type. As riginally rte_pci_read_config() only covered 2 out of 4 possible driver types' .
The patch was submitted for fixing the Virtio Crypto Initialization Segmentation Fault problem introduced in 18.11 RC1, and it did. The problem is I don't think the patch will fix all problems of rte_pci_read_config(). Even I added RTE_KDRV_UIO_GENERIC type into the switch case there is a remaining RTE_KDRV_NIC_UIO type I am not sure where to fit due to the limited knowledge. That's why I write the patch title like this. I hope someone else with better bus knowledge could submit a complete fix patch. Best regards, Fan > -----Original Message----- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Thursday, November 1, 2018 1:35 PM > To: Zhang, Roy Fan <roy.fan.zh...@intel.com> > Cc: dev@dpdk.org; alejandro.luc...@netronome.com > Subject: Re: [PATCH] bus/pci: fix missing case for virtio-crypto > > 01/11/2018 13:10, Fan Zhang: > > 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. > > Hi Fan, > this issue is not related at all to virtio-crypto. > It can happen with any PMD, right? > > In the title, we should mention UIO generic driver. > >