diff options
author | Ido Schimmel <idosch@mellanox.com> | 2016-08-04 16:36:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-08 21:57:27 +0200 |
commit | 4de34eb5743f720dc4798f0647f75c21d44aa1f8 (patch) | |
tree | 4ba20e58f29320c249cff09cbb26b35517c6457d /drivers/net/ethernet | |
parent | mlxsw: spectrum: Do not override PAUSE settings (diff) | |
download | linux-4de34eb5743f720dc4798f0647f75c21d44aa1f8.tar.xz linux-4de34eb5743f720dc4798f0647f75c21d44aa1f8.zip |
mlxsw: spectrum: Add missing DCB rollback in error path
We correctly execute mlxsw_sp_port_dcb_fini() when port is removed, but
I missed its rollback in the error path of port creation, so add it.
Fixes: f00817df2b42 ("mlxsw: spectrum: Introduce support for Data Center Bridging (DCB)")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c index c3e61500819d..e1b8f62ccaed 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c @@ -2220,6 +2220,7 @@ err_port_vlan_init: err_core_port_init: unregister_netdev(dev); err_register_netdev: + mlxsw_sp_port_dcb_fini(mlxsw_sp_port); err_port_dcb_init: err_port_ets_init: err_port_buffers_init: |