From: David Marchand Date: Tue, 15 Mar 2016 06:29:10 +0000 (+0100) Subject: pci: separate ioport handlers per UIO driver X-Git-Tag: spdx-start~7257 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=aa664f45cc744d28778656136d0883ccd15839d6;p=dpdk.git pci: separate ioport handlers per UIO driver Prepare for fixes on x86 by separating igb_uio and uio_pci_generic cases. Signed-off-by: David Marchand --- diff --git a/lib/librte_eal/linuxapp/eal/eal_pci.c b/lib/librte_eal/linuxapp/eal/eal_pci.c index 5101851a4b..74c6919289 100644 --- a/lib/librte_eal/linuxapp/eal/eal_pci.c +++ b/lib/librte_eal/linuxapp/eal/eal_pci.c @@ -617,6 +617,8 @@ rte_eal_pci_ioport_map(struct rte_pci_device *dev, int bar, break; #endif case RTE_KDRV_IGB_UIO: + ret = pci_uio_ioport_map(dev, bar, p); + break; case RTE_KDRV_UIO_GENERIC: ret = pci_uio_ioport_map(dev, bar, p); break; @@ -646,6 +648,8 @@ rte_eal_pci_ioport_read(struct rte_pci_ioport *p, break; #endif case RTE_KDRV_IGB_UIO: + pci_uio_ioport_read(p, data, len, offset); + break; case RTE_KDRV_UIO_GENERIC: pci_uio_ioport_read(p, data, len, offset); break; @@ -670,6 +674,8 @@ rte_eal_pci_ioport_write(struct rte_pci_ioport *p, break; #endif case RTE_KDRV_IGB_UIO: + pci_uio_ioport_write(p, data, len, offset); + break; case RTE_KDRV_UIO_GENERIC: pci_uio_ioport_write(p, data, len, offset); break; @@ -696,6 +702,8 @@ rte_eal_pci_ioport_unmap(struct rte_pci_ioport *p) break; #endif case RTE_KDRV_IGB_UIO: + ret = pci_uio_ioport_unmap(p); + break; case RTE_KDRV_UIO_GENERIC: ret = pci_uio_ioport_unmap(p); break;