Hi Bruce,

Thanks for the review and feedback. Please find my reply in-line.

Thanks,
Amit Shukla

> -----Original Message-----
> From: Bruce Richardson <bruce.richard...@intel.com>
> Sent: Monday, December 11, 2023 3:54 PM
> To: Amit Prakash Shukla <amitpraka...@marvell.com>
> Cc: Chengwen Feng <fengcheng...@huawei.com>; Kevin Laatz
> <kevin.la...@intel.com>; dev@dpdk.org; Jerin Jacob Kollanukkaran
> <jer...@marvell.com>; Vamsi Krishna Attunuru <vattun...@marvell.com>;
> Nithin Kumar Dabilpuram <ndabilpu...@marvell.com>; Anoob Joseph
> <ano...@marvell.com>; m...@smartsharesystems.com
> Subject: [EXT] Re: [PATCH] lib/dmadev: get DMA device using device ID
> 
> External Email
> 
> ----------------------------------------------------------------------
> On Fri, Dec 08, 2023 at 01:25:25PM +0530, Amit Prakash Shukla wrote:
> > DMA library has a function to get DMA device based on device name but
> > there is no function to get DMA device using device id.
> >
> > Added a function that lookup for the dma device using device id and
> > returns the pointer to the same.
> >
> > Signed-off-by: Amit Prakash Shukla <amitpraka...@marvell.com>
> > ---
> >  lib/dmadev/rte_dmadev.c     |  9 +++++++++
> >  lib/dmadev/rte_dmadev_pmd.h | 14 ++++++++++++++
> >  lib/dmadev/version.map      |  1 +
> >  3 files changed, 24 insertions(+)
> >
> What is the use-case for these functions? With the dmadev library
> abstraction, other libs and apps should never need a pointer to an dmadev
> struct.
[Amit]: The dmadev struct pointer is needed at driver layer to verify certain 
underlying device parameters which cannot be done as part of dma lib. This api 
is been used in the patch: 
https://patches.dpdk.org/project/dpdk/patch/20231208082835.2817601-3-amitpraka...@marvell.com/

Reply via email to