summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorNir Dotan <nird@mellanox.com>2019-01-08 16:48:03 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-27 10:08:53 +0100
commit0c596ab039d38e4d7a375cdc92ac76ba62224861 (patch)
tree1cf7d973db571649ef99cc7f0b03af4591e43793 /tools/testing
parent7169938b07dbee55653d09adfa909dcf275ba10f (diff)
mlxsw: spectrum_acl: Add cleanup after C-TCAM update error condition
[ Upstream commit ff0db43cd6c530ff944773ccf48ece55d32d0c22 ] When writing to C-TCAM, mlxsw driver uses cregion->ops->entry_insert(). In case of C-TCAM HW insertion error, the opposite action should take place. Add error handling case in which the C-TCAM region entry is removed, by calling cregion->ops->entry_remove(). Fixes: a0a777b9409f ("mlxsw: spectrum_acl: Start using A-TCAM") Signed-off-by: Nir Dotan <nird@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions