> -----Original Message-----
> From: Jerin Jacob <[email protected]>
> Sent: Thursday, September 21, 2023 9:13 PM
> To: Amit Prakash Shukla <[email protected]>
> Cc: Chengwen Feng <[email protected]>; Kevin Laatz
> <[email protected]>; Bruce Richardson <[email protected]>;
> [email protected]; Jerin Jacob Kollanukkaran <[email protected]>;
> [email protected]; Vamsi Krishna Attunuru <[email protected]>;
> [email protected]; [email protected]; [email protected];
> [email protected]; Nithin Kumar Dabilpuram
> <[email protected]>; Anoob Joseph <[email protected]>;
> [email protected]
> Subject: [EXT] Re: [PATCH v2] dmadev: get DMA device using device ID
> 
> External Email
> 
> ----------------------------------------------------------------------
> On Tue, Sep 19, 2023 at 5:12 PM Amit Prakash Shukla
> <[email protected]> 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.
> 
> Looks like it is useful for getting nb_vchan. Could you use info_get() API
> instead as it can be cached in slow path for DMA adapter?

Yeah, we can cache nb_vchan using rte_dma_info_get. We can drop the patch. 
Thanks.

Reply via email to