From 2d1a62bfddbba92a0aeec5c68e9b0a7903b178da Mon Sep 17 00:00:00 2001 From: Maxime Peim Date: Fri, 6 Jan 2023 11:57:38 +0000 Subject: 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 Change-Id: I4cc8fda0fc7c635a4110da3e757356b150f9b606 --- src/vnet/policer/xlate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet/policer/xlate.c') diff --git a/src/vnet/policer/xlate.c b/src/vnet/policer/xlate.c index 9c4d76fd990..bffd208716d 100644 --- a/src/vnet/policer/xlate.c +++ b/src/vnet/policer/xlate.c @@ -1058,7 +1058,7 @@ x86_pol_compute_hw_params (qos_pol_cfg_params_st *cfg, policer_t *hw) * Return: Status, success or failure code. */ int -pol_logical_2_physical (qos_pol_cfg_params_st *cfg, policer_t *phys) +pol_logical_2_physical (const qos_pol_cfg_params_st *cfg, policer_t *phys) { int rc; qos_pol_cfg_params_st kbps_cfg; -- cgit 1.2.3-korg