mlxsw: reg: Add support for activity information from PEFA register
authorJiri Pirko <jiri@mellanox.com>
Wed, 18 Jul 2018 08:14:35 +0000 (11:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 17:13:13 +0000 (02:13 +0900)
commit2d186ed4ddfd3a20b529d7bec43c30a7a0bbdd3b
treed4ea6e3778398ef23126142102b39422ed9bcb54
parentdcdf01028efa4c72d442f029e9bde449d7e7bc4a
mlxsw: reg: Add support for activity information from PEFA register

In Spectrum-2, the PEFA register is extend to report if the action set
was hit during processing of packets. Introduce this extension and
adjust the code around this accordingly.

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