]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_acl: Do not invalidate already invalid ACL groups
authorIdo Schimmel <idosch@mellanox.com>
Mon, 19 Mar 2018 07:51:03 +0000 (09:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Mar 2018 16:11:02 +0000 (12:11 -0400)
commitf39908fb2631b8be6e7d205be3a1adaaa6eec894
tree2f901464678adac36e347da9dbce5dfb3b9dd766
parente12442ba6dfa7f6e10f990c7209f249774a1295a
mlxsw: spectrum_acl: Do not invalidate already invalid ACL groups

When a new ACL group is created its region (ACL) list is initially
empty. Thus, the call to mlxsw_sp_acl_tcam_group_update() would
basically invalidate an already invalid (non-existent) group.

Remove the unnecessary call and make the function symmetric to its del()
counterpart.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c