[PATCH v2] ethdev: fast path async flow API
Dariusz Sosnowski
dsosnowski at nvidia.com
Tue Feb 6 18:50:45 CET 2024
> -----Original Message-----
> From: Thomas Monjalon <thomas at monjalon.net>
> Sent: Monday, February 5, 2024 15:03
> To: Dariusz Sosnowski <dsosnowski at nvidia.com>
> Cc: Slava Ovsiienko <viacheslavo at nvidia.com>; Ori Kam <orika at nvidia.com>;
> Suanming Mou <suanmingm at nvidia.com>; Matan Azrad
> <matan at nvidia.com>; Ferruh Yigit <ferruh.yigit at amd.com>; Andrew
> Rybchenko <andrew.rybchenko at oktetlabs.ru>; dev at dpdk.org
> Subject: Re: [PATCH v2] ethdev: fast path async flow API
>
> External email: Use caution opening links or attachments
>
>
> 05/02/2024 14:14, Dariusz Sosnowski:
> > From: Thomas Monjalon <thomas at monjalon.net>
> > > 31/01/2024 10:35, Dariusz Sosnowski:
> > > > As a result, no checks for availability of the implementation are
> > > > needed at library level in data path.
> > > > Any library-level validation checks in async flow API are compiled
> > > > if and only if RTE_FLOW_DEBUG macro is defined.
> > >
> > > How are we supposed to enable RTE_FLOW_DEBUG?
> >
> > I should document it, but the idea was that it must be explicitly
> > enabled during build, by adding -c_args=-DRTE_FLOW_DEBUG to meson
> options.
> >
> > Do you think doc/guides/nics/build_and_test.rst is a good place to
> document this option?
>
> Yes
>
> > It would be documented alongside RTE_ETHDEV_DEBUG_RX and
> RTE_ETHDEV_DEBUG_TX.
> >
> > > May it be enabled automatically if other debug option is globally enabled?
> >
> > Do you mean that if buildtype is defined as debug, then RTE_FLOW_DEBUG
> is defined automatically?
>
> Yes
>
> > I think that's a good idea.
>
> Another way of enabling it is to check
> #if RTE_LOG_DP_LEVEL >= RTE_LOG_DEBUG
I think that defining RTE_FLOW_DEBUG based on buildtype would be more appropriate,
since the code under RTE_FLOW_DEBUG is not responsible for any additional logging or tracing.
It rather serves as basic checks for all async flow API functions.
Best regards,
Dariusz Sosnowski
More information about the dev
mailing list