diff options
author | 2023-01-06 11:57:38 +0000 | |
---|---|---|
committer | 2023-02-02 00:22:06 +0000 | |
commit | 2d1a62bfddbba92a0aeec5c68e9b0a7903b178da (patch) | |
tree | b5a8306e9d345c18bb45a55b0cfa5786c02258f0 /src/vnet/policer/xlate.h | |
parent | 3220d9f16b3db05fe9ea8d756395cd8aa7755863 (diff) |
policer: API policer selection by index
Policer API calls were only by policer name. It is now possible to
select a policer by its index.
Some functionalities are also added to allow updating a policer
configuration and to refill its token buckets.
Some dead codes are being removed, and small fixes made.
Type: improvement
Signed-off-by: Maxime Peim <mpeim@cisco.com>
Change-Id: I4cc8fda0fc7c635a4110da3e757356b150f9b606
Diffstat (limited to 'src/vnet/policer/xlate.h')
-rw-r--r-- | src/vnet/policer/xlate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/policer/xlate.h b/src/vnet/policer/xlate.h index 722ac2fb777..7f6ebe7b65d 100644 --- a/src/vnet/policer/xlate.h +++ b/src/vnet/policer/xlate.h @@ -158,7 +158,7 @@ typedef struct qos_pol_hw_params_st_ u32 extd_bkt; } qos_pol_hw_params_st; -int pol_logical_2_physical (qos_pol_cfg_params_st *cfg, policer_t *phys); +int pol_logical_2_physical (const qos_pol_cfg_params_st *cfg, policer_t *phys); #endif /* __included_xlate_h__ */ |