]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_acl: Adapt ACL configuration to new firmware versions
authorIdo Schimmel <idosch@mellanox.com>
Mon, 19 Mar 2018 07:51:02 +0000 (09:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Mar 2018 16:11:02 +0000 (12:11 -0400)
commite12442ba6dfa7f6e10f990c7209f249774a1295a
treee592512f7bc8e8232c8680cde1c0521d178cc8a7
parentff69a24edf283fed17ea614f72791703986c793b
mlxsw: spectrum_acl: Adapt ACL configuration to new firmware versions

The driver currently creates empty ACL groups, binds them to the
requested port and then fills them with actual ACLs that point to TCAM
regions.

However, empty ACL groups are considered invalid and upcoming firmware
versions are going to forbid their binding.

Work around this limitation by only performing the binding after the
first ACL was added to the group.

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.c