]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net/sched/sch_hfsc.c: go passive after vt update
authorMichal Soltys <soltys@ziu.info>
Thu, 30 Jun 2016 00:26:47 +0000 (02:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2016 09:03:43 +0000 (05:03 -0400)
commitab12cb4742cf608cfee43c84fe07fa56bd473dcb
tree00a960cf56b56a0387e63af15e921ae0168bc6ef
parent2354f056f6847125a95b42732ab481730389c099
net/sched/sch_hfsc.c: go passive after vt update

When a class is going passive, it should update its cl_vt first
to be consistent with the last dequeue operation.

Otherwise its cl_vt will be one packet behind and parent's cvtmax might
not be updated as well.

One possible side effect is if some class goes passive and subsequently
goes active /without/ its parent going passive - with cl_vt lagging one
packet behind - comparison made in init_vf() will be affected (same
period).

Signed-off-by: Michal Soltys <soltys@ziu.info>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_hfsc.c