]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_qdisc: Destroy children in mlxsw_sp_qdisc_destroy()
authorPetr Machata <petrm@nvidia.com>
Tue, 19 Oct 2021 08:07:07 +0000 (11:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Oct 2021 11:24:51 +0000 (12:24 +0100)
commit0d599381d7fdb3b1207ca2585ebd449f019f5201
tree4bec74c9615638eb1ceac4d55b3a08ed790c4cdf
parent5fc9c3297c76990ea58991c97a3fcfd093a31d23
mlxsw: spectrum_qdisc: Destroy children in mlxsw_sp_qdisc_destroy()

Currently ETS and PRIO are the only offloaded classful qdiscs. Since they
are both similar, their destroy handler is the same, and it handles
children destruction itself. But now it is possible to do it generically
for any classful qdisc. Therefore promote the recursive destruction from
the ETS handler to mlxsw_sp_qdisc_destroy(), so that RED and TBF pick it up
in follow-up patches.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c