diff options
author | Arkadi Sharshevsky <arkadis@mellanox.com> | 2017-03-11 09:42:53 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-12 23:50:13 -0700 |
commit | 1abcbcc292ee6c66e659b2a7a5e84e5d151e9334 (patch) | |
tree | 72c1e6d9051da632fd0e5e45d3de85bdb86b9103 /drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.h | |
parent | 5766532abcee1e06897f3e1865c763f5d6eac495 (diff) | |
download | talos-obmc-linux-1abcbcc292ee6c66e659b2a7a5e84e5d151e9334.tar.gz talos-obmc-linux-1abcbcc292ee6c66e659b2a7a5e84e5d151e9334.zip |
mlxsw: spectrum: Add support for generic flow counter allocation
Add support for allocating generic flow counter. Generic flow counter
can count packets or packets and bytes and can be assigned to different
hardware processes. First use will be for counting packets and bytes of
ACL rules, and will be introduced in the following patches.
Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>
Reviewed-by: Ido schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.h index 5bf42d923edf..031bc4abbe2d 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.h +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.h @@ -38,8 +38,7 @@ #include "spectrum.h" enum mlxsw_sp_counter_sub_pool_id { - /* Placeholder before first pool registered */ - MLXSW_SP_COUNTER_SUB_POOL_PLACEHOLDER, + MLXSW_SP_COUNTER_SUB_POOL_FLOW, }; int mlxsw_sp_counter_alloc(struct mlxsw_sp *mlxsw_sp, |