Commit 4909dab
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>1 parent b3037ac commit 4909dab
1 file changed
+3
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
952 | | - | |
953 | 952 | | |
954 | 953 | | |
955 | 954 | | |
956 | 955 | | |
957 | 956 | | |
958 | 957 | | |
959 | 958 | | |
960 | | - | |
961 | | - | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
962 | 962 | | |
963 | 963 | | |
964 | 964 | | |
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | 968 | | |
979 | 969 | | |
980 | 970 | | |
| |||
0 commit comments