[dpdk-dev] [PATCH] app/testpmd: allow setting shaper profile id to none

Singh, Jasvinder jasvinder.singh at intel.com
Fri Feb 16 10:38:40 CET 2018


<snip>

> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Tomasz Duszynski
> Sent: Friday, February 16, 2018 8:14 AM
> To: dev at dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu at intel.com>; Wu, Jingjing
> <jingjing.wu at intel.com>; Tomasz Duszynski <tdu at semihalf.com>
> Subject: Re: [dpdk-dev] [PATCH] app/testpmd: allow setting shaper profile id
> to none
> 
> On Tue, Jan 30, 2018 at 08:37:08AM +0100, Tomasz Duszynski wrote:
> > Private shaper profiles are attached to nodes defined in traffic
> > manager hierarchy.
> >
> > Since not every node must have a configured shaper testpmd should
> > allow setting shaper profile id to invalid
> > (RTE_TM_SHAPER_PROFILE_ID_NONE) easily.
> >
> > This patch follows same approach as in case of setting parent id of
> > the root node i.e passing a negative value sets node id to
> > RTE_TM_NODE_ID_NULL.
> >
> > In case of private shaper profile negative value will set shaper
> > profile id to RTE_TM_SHAPER_PROFILE_ID_NONE.
> >
> > Signed-off-by: Tomasz Duszynski <tdu at semihalf.com>
> > ---

Reviewed-by: Jasvinder Singh <jasvinder.singh at intel.com>


More information about the dev mailing list