]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched/hfsc: fix curve activation in hfsc_change_class()
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Wed, 20 Sep 2017 12:46:11 +0000 (15:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Sep 2017 18:56:32 +0000 (11:56 -0700)
commit62ea7e74bbda658a4718cbe7e96374cfc02d653c
treeb6d820299994336c14458d8a198a1cb9fce79730
parentf97cf800d29dba67b44822f7d967f9f0644b6010
net_sched/hfsc: fix curve activation in hfsc_change_class()

If real-time or fair-share curves are enabled in hfsc_change_class()
class isn't inserted into rb-trees yet. Thus init_ed() and init_vf()
must be called in place of update_ed() and update_vf().

Remove isn't required because for now curves cannot be disabled.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_hfsc.c