mlxsw: acl: Introduce activity get operation for action block/set
authorJiri Pirko <jiri@mellanox.com>
Wed, 18 Jul 2018 08:14:36 +0000 (11:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 17:13:13 +0000 (02:13 +0900)
commit0f27e80aea6e51b69e618ac7d977d55007c13f7d
tree0702d9e1389c5e5c014e839dc1f1aa36e27450b4
parent2d186ed4ddfd3a20b529d7bec43c30a7a0bbdd3b
mlxsw: acl: Introduce activity get operation for action block/set

In Spectrum-2, activity cannot be find out by TCAM rule (PTCEv2 register),
but rather by associated action set. For that purpose, extend action ops
to allow query activity from PEFA register. Block activity is decided
according to activity of the first set.

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/core_acl_flex_actions.c
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_actions.c