From b2aae75c1712b733f16e97bdb69e4b93f32de10c Mon Sep 17 00:00:00 2001 From: Brian Russell Date: Tue, 9 Feb 2021 11:36:31 +0000 Subject: policer: use enum types Make the policer action enum packed and use it in the policer code. Use other policer enums where applicable. Type: improvement Signed-off-by: Brian Russell Change-Id: I32f9735942af8bca3160b9ef8a75f605d9aba5fa --- src/vat/api_format.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/vat') diff --git a/src/vat/api_format.c b/src/vat/api_format.c index b16f664f52c..a59544a09c5 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -11652,11 +11652,14 @@ api_policer_add_del (vat_main_t * vam) mp->rate_type = rate_type; mp->round_type = round_type; mp->type = type; - mp->conform_action.type = conform_action.action_type; + mp->conform_action.type = + (vl_api_sse2_qos_action_type_t) conform_action.action_type; mp->conform_action.dscp = conform_action.dscp; - mp->exceed_action.type = exceed_action.action_type; + mp->exceed_action.type = + (vl_api_sse2_qos_action_type_t) exceed_action.action_type; mp->exceed_action.dscp = exceed_action.dscp; - mp->violate_action.type = violate_action.action_type; + mp->violate_action.type = + (vl_api_sse2_qos_action_type_t) violate_action.action_type; mp->violate_action.dscp = violate_action.dscp; mp->color_aware = color_aware; -- cgit 1.2.3-korg