[PATCH v2 1/3] ethdev: add traffic manager query function
Bruce Richardson
bruce.richardson at intel.com
Wed Oct 9 10:07:58 CEST 2024
On Wed, Oct 09, 2024 at 08:57:41AM +0800, fengchengwen wrote:
> On 2024/10/8 22:43, Bruce Richardson wrote:
> > Add function to allow querying a node in the scheduler tree. Returns
> > the parameters as were given to the add function. Adding this function
> > allows apps to just query the hierarchy rather than having to maintain
> > their own copies of it internally.
> >
> > Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> > ---
Hi,
thanks for the detailed review. Most comments are fine and will fix. One
reply below for just one of them though.
/Bruce
<snip>
> > + */
> > +__rte_experimental
> > +int
> > +rte_tm_node_query(uint16_t port_id,
> > + uint32_t node_id,
> > + uint32_t *parent_node_id,
> > + uint32_t *priority,
> > + uint32_t *weight,
> > + uint32_t *level_id,
> > + struct rte_tm_node_params *params,
> > + struct rte_tm_error *error);
> > +
>
> Suggest this new function place after node_resume in header/impl.c(e.g. source or trace), keep them consistency
Why do you think it should go after node resume? I deliberately placed it
after node_add function since the parameters are matching each other,
whatever parameters you provided on add, you get returned to you on query.
More information about the dev
mailing list