diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-09-17 15:55:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-19 14:26:01 +0200 |
commit | f7116fb4608500ad93eca03e0ad158b75fa85d0b (patch) | |
tree | 5565bd03953c0c7cb1dfa581d438d25f19e0039d /include | |
parent | net: phylink: don't call netif_carrier_off() with NULL netdev (diff) | |
download | linux-f7116fb4608500ad93eca03e0ad158b75fa85d0b.tar.xz linux-f7116fb4608500ad93eca03e0ad158b75fa85d0b.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/sch_generic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index 8c2d611639fc..5a011f8d394e 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -1345,6 +1345,8 @@ void mini_qdisc_pair_init(struct mini_Qdisc_pair *miniqp, struct Qdisc *qdisc, void mini_qdisc_pair_block_init(struct mini_Qdisc_pair *miniqp, struct tcf_block *block); +void mq_change_real_num_tx(struct Qdisc *sch, unsigned int new_real_tx); + int sch_frag_xmit_hook(struct sk_buff *skb, int (*xmit)(struct sk_buff *skb)); #endif |