]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mlxsw: spectrum: Add missing DCB rollback in error path
authorIdo Schimmel <idosch@mellanox.com>
Thu, 4 Aug 2016 14:36:22 +0000 (17:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2016 19:57:27 +0000 (12:57 -0700)
commit4de34eb5743f720dc4798f0647f75c21d44aa1f8
tree4ba20e58f29320c249cff09cbb26b35517c6457d
parent07d50cae0661e5479d54d6e3e21cad15b1198103
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>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c