mlxsw: spectrum: Add error paths to __mlxsw_sp_port_vlans_add
authorIdo Schimmel <idosch@mellanox.com>
Thu, 19 Nov 2015 11:27:40 +0000 (12:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Nov 2015 16:06:03 +0000 (11:06 -0500)
commitb07a966c700761f86306925fe8aedf7d1060fa6e
treebaa96436b09213e60e3a0f1708f38cd0f522464e
parent3b7ad5ece49fe72498b50d28253fd39daead1e14
mlxsw: spectrum: Add error paths to __mlxsw_sp_port_vlans_add

The operation of adding VLANs on a port via switchdev ops can fail and
we need to be prepared for it. If we do not rollback hardware operations
following a failure, hardware and software will remain in an
inconsistent state.

Solve that by adding suitable error paths to __mlxsw_sp_port_vlans_add.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
This page took 0.030707 seconds and 5 git commands to generate.