Thread (11 messages) 11 messages, 3 authors, 2021-03-29

Re: [dpdk-dev] [PATCH v2 1/8] bus/vdev: add DMA mapping ops

From: Thomas Monjalon <hidden>
Date: 2021-03-29 21:59:53

25/09/2020 14:31, Maxime Coquelin:
Add DMA map/unmap operation callbacks to the vdev bus, which
could be used by DMA capable vdev drivers.
[...]
quoted hunk ↗ jump to hunk
@@ -551,6 +601,8 @@ static struct rte_bus rte_vdev_bus = {
 	.plug = vdev_plug,
 	.unplug = vdev_unplug,
 	.parse = vdev_parse,
+	.dma_map = vdev_dma_map,
+	.dma_unmap = vdev_dma_unmap,
 	.dev_iterate = rte_vdev_dev_iterate,
 };
The functions map/unmap look to be the same as in PCI bus driver.
I wonder whether it would make sense to move these operations
at rte_driver level?
It seems we don't need anything specific to PCI or vdev,
but just being able to get some class driver private data, right?

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help