patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH] bus/pci: fix wrong intr_handle.type with uio_pci_generic
@ 2017-12-28  6:12 Zhiyong Yang
  2017-12-28  9:05 ` Thomas Monjalon
  2017-12-29  7:55 ` [dpdk-stable] [PATCH v2] " Zhiyong Yang
  0 siblings, 2 replies; 11+ messages in thread
From: Zhiyong Yang @ 2017-12-28  6:12 UTC (permalink / raw)
  To: dev; +Cc: thomas, ferruh.yigit, stable, Zhiyong Yang

In the function rte_pci_ioport_map, if uio_pci_generic is used on X86
platform, pci_ioport_map() is invoked, the operation
ev->intr_handle.type = RTE_INTR_HANDLE_UNKNOWN; is execused directly,
it causes the wrong assignment for uio_pci_generic, the patch fixes it.

Fixes: 756ce64b1ecd ("eal: introduce PCI ioport API")
Cc: stable@dpdk.org
Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
---
 drivers/bus/pci/linux/pci.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c
index 5da6728fb..8ff7dbfd7 100644
--- a/drivers/bus/pci/linux/pci.c
+++ b/drivers/bus/pci/linux/pci.c
@@ -723,7 +723,9 @@ pci_ioport_map(struct rte_pci_device *dev, int bar __rte_unused,
 	if (!found)
 		return -1;
 
-	dev->intr_handle.type = RTE_INTR_HANDLE_UNKNOWN;
+	if (dev->kdrv == RTE_KDRV_NONE)
+		dev->intr_handle.type = RTE_INTR_HANDLE_UNKNOWN;
+
 	p->base = start;
 	RTE_LOG(DEBUG, EAL, "PCI Port IO found start=0x%x\n", start);
 
-- 
2.13.3

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-01-12  0:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-28  6:12 [dpdk-stable] [PATCH] bus/pci: fix wrong intr_handle.type with uio_pci_generic Zhiyong Yang
2017-12-28  9:05 ` Thomas Monjalon
2017-12-28  9:37   ` Yang, Zhiyong
2017-12-28 10:49     ` Thomas Monjalon
2017-12-29  2:10       ` Yang, Zhiyong
2017-12-29  7:55 ` [dpdk-stable] [PATCH v2] " Zhiyong Yang
2017-12-29 11:07   ` Thomas Monjalon
2017-12-30 14:19     ` Yang, Zhiyong
2018-01-03  3:29     ` Yang, Zhiyong
2018-01-10  2:32   ` [dpdk-stable] [PATCH v3] " Zhiyong Yang
2018-01-12  0:04     ` [dpdk-stable] [dpdk-dev] " Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).