Re: [dpdk-dev] [PATCH v2 1/8] bus/vdev: add DMA mapping ops
From: Thomas Monjalon <hidden>
Date: 2021-03-29 21:59:53
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.
[...]
@@ -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?