Skip to contentSkip to conversation

net_sched: htb: fix a typo in htb_change_class()

PATCH In review Eric Dumazet 3 participants 3 messages Sep 11, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net_sched: htb: fix a typo in htb_change_class()

From: Vimalkumar <[email protected]>

Fix a typo added in commit 56b765b79 ("htb: improved accuracy at high rates")

cbuffer should not be a copy of buffer.

Cc Jesper Dangaard Brouer <[email protected]>
Cc Jiri Pirko <[email protected]>
---
 net/sched/sch_htb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/sched/sch_htb.c +1 -1
index c2178b1..863846c 100644
@@ -1495,7 +1495,7 @@ static int htb_change_class(struct Qdisc *sch, u32 classid,
 	psched_ratecfg_precompute(&cl->ceil, &hopt->ceil);
 
 	cl->buffer = PSCHED_TICKS2NS(hopt->buffer);
-	cl->cbuffer = PSCHED_TICKS2NS(hopt->buffer);
+	cl->cbuffer = PSCHED_TICKS2NS(hopt->cbuffer);
 
 	sch_tree_unlock(sch);
 
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Wed, Sep 11, 2013 at 02:36:37AM CEST, [email protected] wrote:

From: Vimalkumar <[email protected]>

Fix a typo added in commit 56b765b79 ("htb: improved accuracy at high rates")

cbuffer should not be a copy of buffer.

Cc Jesper Dangaard Brouer <[email protected]>
Cc Jiri Pirko <[email protected]>
maintainer
#2 lore raw

From: Jiri Pirko <[email protected]>
Date: Wed, 11 Sep 2013 07:58:27 +0200

Quoted 6 lines
Quoted 5 lines · Wed, Sep 11, 2013 at 02:36:37AM CEST, [email protected] wrote:

From: Vimalkumar <[email protected]>

Fix a typo added in commit 56b765b79 ("htb: improved accuracy at high rates")

Quoted 7 lines
Quoted 6 lines

cbuffer should not be a copy of buffer.

Cc Jesper Dangaard Brouer <[email protected]>
Cc Jiri Pirko <[email protected]>

Applied and queued up for -stable, thanks everyone.