Skip to contentSkip to conversation

pci: fix igb_uio mapping for virtio_uio and vmxnet3_uio

PATCH In review Thomas Monjalon 1 participant 2 messages Mar 21, 2014 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci: fix igb_uio mapping for virtio_uio and vmxnet3_uio

Since commit 10ed994 (pci: use igb_uio mapping only when needed), the flag RTE_PCI_DRV_NEED_IGB_UIO must be set even if RTE_EAL_UNBIND_PORTS is disabled.
It was not the case for virtio_uio and vmxnet3_uio so the uio resources were not mapped.

---
 lib/librte_pmd_virtio/virtio_ethdev.c   | 2 --
 lib/librte_pmd_vmxnet3/vmxnet3_ethdev.c | 2 --
 2 files changed, 4 deletions(-)
lib/librte_pmd_virtio/virtio_ethdev.c +0 -2
index 1cd921b..f107161 100644
@@ -474,9 +474,7 @@ static struct eth_driver rte_virtio_pmd = {
 	{
 		.name = "rte_virtio_pmd",
 		.id_table = pci_id_virtio_map,
-#ifdef RTE_EAL_UNBIND_PORTS
 		.drv_flags = RTE_PCI_DRV_NEED_IGB_UIO,
-#endif
 	},
 	.eth_dev_init = eth_virtio_dev_init,
 	.dev_private_size = sizeof(struct virtio_adapter),
lib/librte_pmd_vmxnet3/vmxnet3_ethdev.c +0 -2
index 6757aa2..8259cfe 100644
@@ -267,9 +267,7 @@ static struct eth_driver rte_vmxnet3_pmd = {
 	{
 		.name = "rte_vmxnet3_pmd",
 		.id_table = pci_id_vmxnet3_map,
-#ifdef RTE_EAL_UNBIND_PORTS
 		.drv_flags = RTE_PCI_DRV_NEED_IGB_UIO,
-#endif
 	},
 	.eth_dev_init = eth_vmxnet3_dev_init,
 	.dev_private_size = sizeof(struct vmxnet3_adapter),
Signature · 1 line
1.9.0
#2 lore raw
In reply to a message not in the archive

21/03/2014 14:50, Thomas Monjalon :

Quoted 8 lines

Since commit 10ed994 (pci: use igb_uio mapping only when needed), the flag RTE_PCI_DRV_NEED_IGB_UIO must be set even if RTE_EAL_UNBIND_PORTS is disabled.
It was not the case for virtio_uio and vmxnet3_uio so the uio resources were not mapped.

Merged with Daniel Kan's patch.

Signature · 1 line
Thomas