> -----Original Message----- > From: Jerin Jacob <jerinjac...@gmail.com> > Sent: Thursday, September 21, 2023 9:13 PM > To: Amit Prakash Shukla <amitpraka...@marvell.com> > Cc: Chengwen Feng <fengcheng...@huawei.com>; Kevin Laatz > <kevin.la...@intel.com>; Bruce Richardson <bruce.richard...@intel.com>; > dev@dpdk.org; Jerin Jacob Kollanukkaran <jer...@marvell.com>; > conor.wa...@intel.com; Vamsi Krishna Attunuru <vattun...@marvell.com>; > g.si...@nxp.com; sachin.sax...@oss.nxp.com; hemant.agra...@nxp.com; > cheng1.ji...@intel.com; Nithin Kumar Dabilpuram > <ndabilpu...@marvell.com>; Anoob Joseph <ano...@marvell.com>; > m...@smartsharesystems.com > 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 > <amitpraka...@marvell.com> 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.