]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitddbfe89d0844c008e72052945c4c4a1f04b0a400
tree0702d9e1389c5e5c014e839dc1f1aa36e27450b4
parenta4b21031a199305a6b28f9dd75522a63954387d6
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