net_sched: introduce qdisc_replace() helper
commit86a7996cc8a078793670d82ed97d5a99bb4e8496
authorWANG Cong <xiyou.wangcong@gmail.com>
Thu, 25 Feb 2016 22:55:00 +0000 (25 14:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Feb 2016 22:02:33 +0000 (29 17:02 -0500)
tree8e5d26eb9e58b0c362c66f73baa5261793223178
parentf12d33f4d83c6837d176e1aef337914089c77957
net_sched: introduce qdisc_replace() helper

Remove nearly duplicated code and prepare for the following patch.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
13 files changed:
include/net/sch_generic.h
net/sched/sch_cbq.c
net/sched/sch_drr.c
net/sched/sch_dsmark.c
net/sched/sch_hfsc.c
net/sched/sch_htb.c
net/sched/sch_multiq.c
net/sched/sch_netem.c
net/sched/sch_prio.c
net/sched/sch_qfq.c
net/sched/sch_red.c
net/sched/sch_sfb.c
net/sched/sch_tbf.c