]> 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)
commit75d76d4063eb939412ee48560002f42866a1e05d
tree0702d9e1389c5e5c014e839dc1f1aa36e27450b4
parent74648d84aaa29a226dbcac4145f8631909d4d4c4
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