[dpdk-dev] [PATCH v2 1/1] eventdev: add PCI probe named convenience function
McDaniel, Timothy
timothy.mcdaniel at intel.com
Mon Oct 12 16:02:04 CEST 2020
> -----Original Message-----
> From: Jerin Jacob <jerinjacobk at gmail.com>
> Sent: Sunday, October 11, 2020 4:54 AM
> To: McDaniel, Timothy <timothy.mcdaniel at intel.com>
> Cc: Jerin Jacob <jerinj at marvell.com>; dpdk-dev <dev at dpdk.org>; Carrillo, Erik
> G <erik.g.carrillo at intel.com>; Eads, Gage <gage.eads at intel.com>; Van Haaren,
> Harry <harry.van.haaren at intel.com>
> Subject: Re: [dpdk-dev] [PATCH v2 1/1] eventdev: add PCI probe named
> convenience function
>
> On Thu, Oct 8, 2020 at 9:56 PM Jerin Jacob <jerinjacobk at gmail.com> wrote:
> >
> > On Tue, Oct 6, 2020 at 1:41 AM Timothy McDaniel
> > <timothy.mcdaniel at intel.com> wrote:
> > >
> > > Add new internal wrapper function for use by pci drivers as a
> > > .probe function to attach to an event interface. Same as
> > > rte_event_pmd_pci_probe, except the caller can specify the name.
> > >
> > > Updated rte_event_pmd_pci_probe so as to not duplicate
> > > code.
> > >
> > > Signed-off-by: Timothy McDaniel <timothy.mcdaniel at intel.com>
> > > ---
> > > lib/librte_eventdev/rte_eventdev_pmd_pci.h | 44
> ++++++++++++++++++++++--------
> > > 1 file changed, 32 insertions(+), 12 deletions(-)
> > >
> >
> > > * @internal
> > > + * Wrapper for use by pci drivers as a .probe function to attach to a event
> > > + * interface.
> > > + */
> > > +static inline int
> > > +rte_event_pmd_pci_probe(struct rte_pci_driver *pci_drv,
> > > + struct rte_pci_device *pci_dev,
> > > + size_t private_data_size,
> > > + eventdev_pmd_pci_callback_t devinit)
> >
> >
> > rte_event_pmd_pci_probe() added in
> > lib/librte_eventdev/rte_eventdev_version.map file.
> > Please add the new function in the map file. With above change:
> >
> > Acked-by: Jerin Jacob <jerinj at marvell.com>
>
>
> @McDaniel, Timothy
> Could you send the updated version, I would like to merge this for RC1.
>
>
> >
> >
> >
> > > +{
> > > + char eventdev_name[RTE_EVENTDEV_NAME_MAX_LEN];
> > > +
> > > + rte_pci_device_name(&pci_dev->addr, eventdev_name,
> > > + sizeof(eventdev_name));
> > > +
> > > + return rte_event_pmd_pci_probe_named(pci_drv,
> > > + pci_dev,
> > > + private_data_size,
> > > + devinit,
> > > + eventdev_name);
> > > +}
> > > +
> > > +/**
> > > + * @internal
> > > * Wrapper for use by pci drivers as a .remove function to detach a event
> > > * interface.
> > > */
> > > --
> > > 2.6.4
> > >
I will get that uploaded today.
Thanks,
Tim
More information about the dev
mailing list