net: sched: move and reuse mq_change_real_num_tx()
authorJakub Kicinski <kuba@kernel.org>
Fri, 17 Sep 2021 13:55:06 +0000 (06:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Sep 2021 12:26:01 +0000 (13:26 +0100)
commitf7116fb4608500ad93eca03e0ad158b75fa85d0b
tree5565bd03953c0c7cb1dfa581d438d25f19e0039d
parentcbcca2e3961eac736566ac13ef0d0bf6f0b764ec
net: sched: move and reuse mq_change_real_num_tx()

The code for handling active queue changes is identical
between mq and mqprio, reuse it.

Suggested-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h
net/sched/sch_generic.c
net/sched/sch_mq.c
net/sched/sch_mqprio.c