[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1360338681.28557.96.camel@edumazet-glaptop>
Date: Fri, 08 Feb 2013 07:51:21 -0800
From: Eric Dumazet <erdnetdev@...il.com>
To: Jiri Pirko <jiri@...nulli.us>
Cc: netdev@...r.kernel.org, davem@...emloft.net, edumazet@...gle.com,
jhs@...atatu.com, kuznet@....inr.ac.ru
Subject: Re: [patch net-next 1/7] htb: use PSCHED_TICKS2NS()
On Fri, 2013-02-08 at 13:58 +0100, Jiri Pirko wrote:
> Signed-off-by: Jiri Pirko <jiri@...nulli.us>
> ---
> net/sched/sch_htb.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c
> index 51561ea..476992c 100644
> --- a/net/sched/sch_htb.c
> +++ b/net/sched/sch_htb.c
> @@ -1512,8 +1512,8 @@ static int htb_change_class(struct Qdisc *sch, u32 classid,
> htb_precompute_ratedata(&cl->rate);
> htb_precompute_ratedata(&cl->ceil);
>
> - cl->buffer = hopt->buffer << PSCHED_SHIFT;
> - cl->cbuffer = hopt->buffer << PSCHED_SHIFT;
> + cl->buffer = PSCHED_TICKS2NS(hopt->buffer);
> + cl->cbuffer = PSCHED_TICKS2NS(hopt->buffer);
>
> sch_tree_unlock(sch);
>
Acked-by: Eric Dumazet <edumazet@...gle.com>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists