]> 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)
commitbae81af63af8183a825b1b4d336054957dcea699
tree39566d312919ff79f24094f3d53941c6017f852a
parent9e819912536bb66c50404539ce9f4d7a413f5bf7
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: 68d04ad93ede ("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