]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73e62915442d9b619e7db2cf2d09b694742117d5
tree0d75254b656da561bf38f52b12b9c65c1f4b5341
parent3ee3313e1cb847b75bc566041dccbc6bc78f132b
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