]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Don't return upon error in removal path
authorIdo Schimmel <idosch@mellanox.com>
Wed, 17 Aug 2016 14:39:28 +0000 (16:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Aug 2016 23:18:27 +0000 (19:18 -0400)
commit4d4c7d780bbde3b205a1801cc5b9bc04948f2abb
tree39566d312919ff79f24094f3d53941c6017f852a
parent9f204b06d8a1e2ca6ab0c991358adddfd7d27c59
mlxsw: spectrum: Don't return upon error in removal path

When removing a VLAN filter from the device we shouldn't return upon the
first error we encounter, as otherwise we'll have resources that will
never be freed nor used.

Instead, we should keep trying to free as much resources as possible in
a best effort mode.

Remove the error message as well, since we already get these from the
EMAD transaction code.

Fixes: 1cc503140fec ("mlxsw: spectrum: Introduce support for router interfaces")
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.c