]> 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)
commitf0d2a0b8ecb7a3c5a83404907d161fde70bae285
treee592512f7bc8e8232c8680cde1c0521d178cc8a7
parent105a036f3e644088055871760147d4b1732e9497
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