summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
diff options
context:
space:
mode:
authorJianbo Liu <jianbol@nvidia.com>2021-06-07 01:40:16 +0000
committerSaeed Mahameed <saeedm@nvidia.com>2022-07-02 11:58:28 -0700
commitb8acfd4f21e2d4f41964af0e0a2b24cbbc24440a (patch)
tree8d97af95113f56266bd48d4b7b6d0b8ba4a38a25 /drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
parent6ddac26cf7633766e4e59d513d81f6fd5afa6fcd (diff)
net/mlx5e: Get or put meter by the index of tc police action
Add functions to create and destroy flow meter aso object. This object only supports the range allocation. 64 objects are allocated at a time, and there are two meters in each object. Usually only one meter is allocated for a flow, so bitmap is used to manage these 128 meters. TC police action is mapped to hardware meter. As the index is unique for each police action, add APIs to allocate or free hardware meter by the index. If the meter is already created, increment its refcnt, otherwise create new one. If police action has different parameters, update hardware meter accordingly. Signed-off-by: Jianbo Liu <jianbol@nvidia.com> Reviewed-by: Roi Dayan <roid@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c')
0 files changed, 0 insertions, 0 deletions