OSDN Git Service

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)
commit808be37ae323ed5585a3e6257ccb5b435bd1a4b9
treee592512f7bc8e8232c8680cde1c0521d178cc8a7
parent7e8c711661ce21ceba5be861b1b3d30f325a4db1
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