net/sched/sch_hfsc.c: initialize parent's cl_cfmin properly in init_vf()
authorMichal Soltys <soltys@ziu.info>
Mon, 30 Aug 2010 11:34:10 +0000 (11:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Sep 2010 21:29:35 +0000 (14:29 -0700)
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>
net/sched/sch_hfsc.c

index abd904b..4749609 100644 (file)
@@ -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);
        }
 }