diff options
author | Jiri Pirko <jiri@mellanox.com> | 2018-01-19 11:24:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-22 02:21:30 +0300 |
commit | 4c6b7f6307d46ca3dcb8a32975fe68d153832176 (patch) | |
tree | ebc2290d6e6216720f54c87dd8fff84d71090b5b /drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.h | |
parent | 65b342f15bb9c01d025c60d44a8035d7696416b8 (diff) | |
download | linux-4c6b7f6307d46ca3dcb8a32975fe68d153832176.tar.xz |
mlxsw: spectrum: Extend mlxsw_afa_ops for counter index and implement for Spectrum
Introduce extension of mlxsw_afa_ops in order to get/put counter indexes
and implement the ops for Spectrum.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.h b/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.h index a8d3314c3a24..89f977996ae2 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.h +++ b/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.h @@ -46,6 +46,8 @@ struct mlxsw_afa_ops { void (*kvdl_set_del)(void *priv, u32 kvdl_index, bool is_first); int (*kvdl_fwd_entry_add)(void *priv, u32 *p_kvdl_index, u8 local_port); void (*kvdl_fwd_entry_del)(void *priv, u32 kvdl_index); + int (*counter_index_get)(void *priv, unsigned int *p_counter_index); + void (*counter_index_put)(void *priv, unsigned int counter_index); }; struct mlxsw_afa *mlxsw_afa_create(unsigned int max_acts_per_set, |