This patch follows the idea of Konstantin, and introduces rte_dma_fp_object to hide implementation detail. This change modify the first parameter of drivers's dataplane interface: from 'struct rte_dma_dev *dev' to 'void *dev_private'.
On 2021/10/9 17:33, Chengwen Feng wrote: > This patch add data plane API for dmadev. > > Signed-off-by: Chengwen Feng <fengcheng...@huawei.com> > Acked-by: Bruce Richardson <bruce.richard...@intel.com> > Acked-by: Morten Brørup <m...@smartsharesystems.com> > Reviewed-by: Kevin Laatz <kevin.la...@intel.com> > Reviewed-by: Conor Walsh <conor.wa...@intel.com> > --- > doc/guides/prog_guide/dmadev.rst | 22 ++ > doc/guides/rel_notes/release_21_11.rst | 2 +- > lib/dmadev/meson.build | 1 + > lib/dmadev/rte_dmadev.c | 134 ++++++++ > lib/dmadev/rte_dmadev.h | 451 +++++++++++++++++++++++++ > lib/dmadev/rte_dmadev_core.h | 78 +++++ > lib/dmadev/rte_dmadev_pmd.h | 7 + > lib/dmadev/version.map | 6 + > 8 files changed, 700 insertions(+), 1 deletion(-) > create mode 100644 lib/dmadev/rte_dmadev_core.h > [snip]