commit | 56202ca4eddf9c3b2cda98095e0f2aa4196ec2ed | [log] [tgz] |
---|---|---|
author | Nogah Frankel <nogahf@mellanox.com> | Wed Jan 10 15:00:07 2018 +0100 |
committer | David S. Miller <davem@davemloft.net> | Wed Jan 10 16:07:41 2018 -0500 |
tree | b07fa663e0a7885e7a405e4d2f695e6aebe73638 | |
parent | 9cf6c9c7585446f1a532d218ae9be8653f4d7a82 [diff] |
mlxsw: spectrum: qdiscs: Remove qdisc before setting a new one If a qdisc is being replaced by another qdisc of the same type, it can simply override over its configuration. However, if it replaces a qdisc of another type, it needs to be removed before setting the new qdisc. 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>