Re: [dpdk-dev] [PATCH v3] log: register with standardized names

2021-05-11 Thread Bruce Richardson
On Tue, May 11, 2021 at 02:10:47PM +0200, Thomas Monjalon wrote: > 11/05/2021 13:59, Bruce Richardson: > > On Tue, May 11, 2021 at 12:09:27PM +0200, Thomas Monjalon wrote: > > > --- a/drivers/meson.build > > > +++ b/drivers/meson.build > > > @@ -59,6 +59,11 @@ foreach subpath:subdirs > > >

Re: [dpdk-dev] [PATCH v3] log: register with standardized names

2021-05-11 Thread Thomas Monjalon
11/05/2021 13:59, Bruce Richardson: > On Tue, May 11, 2021 at 12:09:27PM +0200, Thomas Monjalon wrote: > > --- a/drivers/meson.build > > +++ b/drivers/meson.build > > @@ -59,6 +59,11 @@ foreach subpath:subdirs > > drivers += driver_path[1] > > else > > class = subpath > > +

Re: [dpdk-dev] [PATCH v3] log: register with standardized names

2021-05-11 Thread Thomas Monjalon
11/05/2021 13:49, Bruce Richardson: > On Tue, May 11, 2021 at 12:09:27PM +0200, Thomas Monjalon wrote: > > +log_prefix > > + **Default Value = pmd.** > > + Some driver classes have a customized log prefix. > > + This prefix is combined with the driver name > > + when registering a default l

Re: [dpdk-dev] [PATCH v3] log: register with standardized names

2021-05-11 Thread Bruce Richardson
On Tue, May 11, 2021 at 12:09:27PM +0200, Thomas Monjalon wrote: > From: David Marchand > > Let's try to enforce the convention where most drivers use a pmd. logtype > with their class reflected in it, and libraries use a lib. logtype. > > Introduce two new macros: > - RTE_LOG_REGISTER_DEFAULT c

Re: [dpdk-dev] [PATCH v3] log: register with standardized names

2021-05-11 Thread Bruce Richardson
On Tue, May 11, 2021 at 12:09:27PM +0200, Thomas Monjalon wrote: > From: David Marchand > > Let's try to enforce the convention where most drivers use a pmd. logtype > with their class reflected in it, and libraries use a lib. logtype. > > Introduce two new macros: > - RTE_LOG_REGISTER_DEFAULT c

Re: [dpdk-dev] [PATCH v3] log: register with standardized names

2021-05-11 Thread David Marchand
On Tue, May 11, 2021 at 12:09 PM Thomas Monjalon wrote: > > From: David Marchand > > Let's try to enforce the convention where most drivers use a pmd. logtype > with their class reflected in it, and libraries use a lib. logtype. > > Introduce two new macros: > - RTE_LOG_REGISTER_DEFAULT can be us

[dpdk-dev] [PATCH v3] log: register with standardized names

2021-05-11 Thread Thomas Monjalon
From: David Marchand Let's try to enforce the convention where most drivers use a pmd. logtype with their class reflected in it, and libraries use a lib. logtype. Introduce two new macros: - RTE_LOG_REGISTER_DEFAULT can be used when a single logtype is used in a component. It is associated to