mlxsw: spectrum: qdiscs: Create a generic destroy function
authorNogah Frankel <[email protected]>
Wed, 10 Jan 2018 14:00:05 +0000 (15:00 +0100)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Reviewed-by: Yuval Mintz <[email protected]>
Signed-off-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c