Subject: Re: [PATCH] pkt_sched: gen_estimator: Optimize gen_estimator_active()

From: Stephen Hemminger <[email-masked]>
Date: Wed, 26 Nov 2008 08:29:22 -0800

On Wed, 26 Nov 2008 11:10:22 +0000
Jarek Poplawski <[email-masked]> wrote:

> pkt_sched: gen_estimator: Optimize gen_estimator_active()
> 
> Since all other gen_estimator functions use bstats and rate_est params
> together, and searching for them is optimized now, let's use this also
> in gen_estimator_active(). The return type of gen_estimator_active()
> is changed to bool, and gen_find_node() parameters to const, btw.
> 
> In tcf_act_police_locate() a check for ACT_P_CREATED is added before
> calling gen_estimator_active().
> 
> Signed-off-by: Jarek Poplawski <[email-masked]>

yeah sure, i just coded the obvious way.