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>
This commit is contained in:
parent
b8d5dfd4a5
commit
a38eafedda
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user