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)
commit21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14
treeb6d820299994336c14458d8a198a1cb9fce79730
parentc8e1812960eeae42e2183154927028511c4bc566
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