};
 
 static bool
-mlxsw_sp_qdisc_compare(struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, u32 handle,
-                      enum mlxsw_sp_qdisc_type type)
+mlxsw_sp_qdisc_compare(struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, u32 handle)
 {
-       return mlxsw_sp_qdisc && mlxsw_sp_qdisc->ops &&
-              mlxsw_sp_qdisc->ops->type == type &&
-              mlxsw_sp_qdisc->handle == handle;
+       return mlxsw_sp_qdisc->ops && mlxsw_sp_qdisc->handle == handle;
 }
 
 static struct mlxsw_sp_qdisc *
                                              &mlxsw_sp_qdisc_ops_red,
                                              &p->set);
 
-       if (!mlxsw_sp_qdisc_compare(mlxsw_sp_qdisc, p->handle,
-                                   MLXSW_SP_QDISC_RED))
+       if (!mlxsw_sp_qdisc_compare(mlxsw_sp_qdisc, p->handle))
                return -EOPNOTSUPP;
 
        switch (p->command) {
                                              &mlxsw_sp_qdisc_ops_tbf,
                                              &p->replace_params);
 
-       if (!mlxsw_sp_qdisc_compare(mlxsw_sp_qdisc, p->handle,
-                                   MLXSW_SP_QDISC_TBF))
+       if (!mlxsw_sp_qdisc_compare(mlxsw_sp_qdisc, p->handle))
                return -EOPNOTSUPP;
 
        switch (p->command) {
                                              &mlxsw_sp_qdisc_ops_fifo, NULL);
        }
 
-       if (!mlxsw_sp_qdisc_compare(mlxsw_sp_qdisc, p->handle,
-                                   MLXSW_SP_QDISC_FIFO))
+       if (!mlxsw_sp_qdisc_compare(mlxsw_sp_qdisc, p->handle))
                return -EOPNOTSUPP;
 
        switch (p->command) {
                                              &mlxsw_sp_qdisc_ops_prio,
                                              &p->replace_params);
 
-       if (!mlxsw_sp_qdisc_compare(mlxsw_sp_qdisc, p->handle,
-                                   MLXSW_SP_QDISC_PRIO))
+       if (!mlxsw_sp_qdisc_compare(mlxsw_sp_qdisc, p->handle))
                return -EOPNOTSUPP;
 
        switch (p->command) {
                                              &mlxsw_sp_qdisc_ops_ets,
                                              &p->replace_params);
 
-       if (!mlxsw_sp_qdisc_compare(mlxsw_sp_qdisc, p->handle,
-                                   MLXSW_SP_QDISC_ETS))
+       if (!mlxsw_sp_qdisc_compare(mlxsw_sp_qdisc, p->handle))
                return -EOPNOTSUPP;
 
        switch (p->command) {