mlxsw: spectrum: qdiscs: Create a generic destroy function
authorNogah Frankel <nogahf@mellanox.com>
Wed, 10 Jan 2018 14:00:05 +0000 (15:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 21:07:41 +0000 (16:07 -0500)
commit9a37a59f715256cea75cbdbcacd21e9e9dd4b72f
treec6bc614179789c6971525709f09c7d13c13ac559
parent562ffbc4b3eb2fa8cd8eac1f22bc264dbbeb9a16
mlxsw: spectrum: qdiscs: Create a generic destroy function

Add a destroy function to the qdiscs ops struct.
Create a generic qdisc destroy function, that clears the qdisc metadata as
well as calling the specific qdisc destroy function.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Reviewed-by: Yuval Mintz <yuvalm@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c