summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFan Zhang <roy.fan.zhang@intel.com>2018-11-01 12:10:09 +0000
committerThomas Monjalon <thomas@monjalon.net>2018-11-06 02:11:25 +0100
commita38eafedda1de14c9fd7219e769e89e4aec92a45 (patch)
tree8a2da88cd2e5b30a7ff300701968eb9ce9895219 /drivers
parentb8d5dfd4a5f006794d85f93fc97134460ffbdfdf (diff)
downloaddpdk-a38eafedda1de14c9fd7219e769e89e4aec92a45.zip
dpdk-a38eafedda1de14c9fd7219e769e89e4aec92a45.tar.gz
dpdk-a38eafedda1de14c9fd7219e769e89e4aec92a45.tar.xz
bus/pci: fix config r/w access
The recent change to rte_pci_read/write_config() missed uio_pci_generic case. Fixes: 630deed612ca ("bus/pci: compare kernel driver instead of interrupt handler") Cc: stable@dpdk.org Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/bus/pci/linux/pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c
index f87533c..c99d523 100644
--- a/drivers/bus/pci/linux/pci.c
+++ b/drivers/bus/pci/linux/pci.c
@@ -713,6 +713,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:
@@ -736,6 +737,7 @@ int rte_pci_write_config(const struct rte_pci_device *device,
switch (device->kdrv) {
case RTE_KDRV_IGB_UIO:
+ case RTE_KDRV_UIO_GENERIC:
return pci_uio_write_config(intr_handle, buf, len, offset);
#ifdef VFIO_PRESENT
case RTE_KDRV_VFIO: