network/tc: drop child tree of traffic control nodes on remove
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 7 Oct 2023 05:20:38 +0000 (14:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 7 Oct 2023 12:35:16 +0000 (21:35 +0900)
commitbe8e93390003e45acbb318c6e1e48fbc3c772f78
tree023ba589fa047b0afacded82f998e75578d584fd
parent0708c4fbdbea7c190cd1c40d95758e829dcc54bc
network/tc: drop child tree of traffic control nodes on remove

When a node of traffic control tree is removed, all child nodes are also
removed but their removal are not notified by the kernel.
So, previously, removed TC classes or qdiscs under the removed node were
kept in the memory of networkd, and may cause failure on reconfigure.
src/network/tc/qdisc.c
src/network/tc/qdisc.h
src/network/tc/tclass.c
src/network/tc/tclass.h