net_sched: use qdisc_reset() in qdisc_destroy()
authorCong Wang <xiyou.wangcong@gmail.com>
Wed, 27 May 2020 04:35:23 +0000 (21:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 22:05:49 +0000 (15:05 -0700)
commit4909daba37846317ec7dcba16fba009636f7fe21
tree0d75254b656da561bf38f52b12b9c65c1f4b5341
parentb3037ac50130a169c3980e63f8df2f0b599db411
net_sched: use qdisc_reset() in qdisc_destroy()

qdisc_destroy() calls ops->reset() and cleans up qdisc->gso_skb
and qdisc->skb_bad_txq, these are nearly same with qdisc_reset(),
so just call it directly, and cosolidate the code for the next
patch.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_generic.c