summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_hfsc.c
diff options
context:
space:
mode:
authorMichal Soltys <soltys@ziu.info>2010-08-30 13:34:10 +0200
committerDavid S. Miller <davem@davemloft.net>2010-09-01 23:29:35 +0200
commit3b2eb6131e2f6ff646abb0fc69648179b8b70216 (patch)
treec868e5eadcccb39ad4d2731c21caccd3098eff56 /net/sched/sch_hfsc.c
parentpxa168_eth: fix a mdiobus leak (diff)
downloadlinux-3b2eb6131e2f6ff646abb0fc69648179b8b70216.tar.xz
linux-3b2eb6131e2f6ff646abb0fc69648179b8b70216.zip
net/sched/sch_hfsc.c: initialize parent's cl_cfmin properly in init_vf()
This patch fixes init_vf() function, so on each new backlog period parent's cl_cfmin is properly updated (including further propgation towards the root), even if the activated leaf has no upperlimit curve defined. Signed-off-by: Michal Soltys <soltys@ziu.info> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_hfsc.c')
-rw-r--r--net/sched/sch_hfsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c
index abd904be4287..47496098d35c 100644
--- a/net/sched/sch_hfsc.c
+++ b/net/sched/sch_hfsc.c
@@ -761,8 +761,8 @@ init_vf(struct hfsc_class *cl, unsigned int len)
if (f != cl->cl_f) {
cl->cl_f = f;
cftree_update(cl);
- update_cfmin(cl->cl_parent);
}
+ update_cfmin(cl->cl_parent);
}
}