diff options
author | Brian Russell <brian@graphiant.com> | 2021-02-09 10:16:58 +0000 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2021-02-12 14:55:58 +0000 |
commit | c5299ff30a6186f580509eda2c4db3decfffe967 (patch) | |
tree | 019738ecade99e21539171dab723b4cba0bc7d72 /src/vnet/policer/policer_api.c | |
parent | cf0102b3ba69cb6bad6b1bae159e51976e2331f8 (diff) |
policer: remove SSE2 prefix
The policer code uses a naming convention of prefixing a lot of
its definitions with "SSE2" when in fact there is nothing SSE2
specific about them. This is confusing so remove the prefix.
Unfortunately it has to stay in the API definitions for backward
compatibility.
Type: improvement
Signed-off-by: Brian Russell <brian@graphiant.com>
Change-Id: I59a7df9fd5ded2575f2e587b2768a025a213b07c
Diffstat (limited to 'src/vnet/policer/policer_api.c')
-rw-r--r-- | src/vnet/policer/policer_api.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/vnet/policer/policer_api.c b/src/vnet/policer/policer_api.c index b543a3c2e0e..855ebad69e9 100644 --- a/src/vnet/policer/policer_api.c +++ b/src/vnet/policer/policer_api.c @@ -53,7 +53,7 @@ vl_api_policer_add_del_t_handler (vl_api_policer_add_del_t * mp) vl_api_policer_add_del_reply_t *rmp; int rv = 0; u8 *name = NULL; - sse2_qos_pol_cfg_params_st cfg; + qos_pol_cfg_params_st cfg; clib_error_t *error; u32 policer_index; @@ -69,13 +69,12 @@ vl_api_policer_add_del_t_handler (vl_api_policer_add_del_t * mp) cfg.rb.kbps.cb_bytes = clib_net_to_host_u64 (mp->cb); cfg.rb.kbps.eb_bytes = clib_net_to_host_u64 (mp->eb); cfg.conform_action.action_type = - (sse2_qos_action_type_en) mp->conform_action.type; + (qos_action_type_en) mp->conform_action.type; cfg.conform_action.dscp = mp->conform_action.dscp; - cfg.exceed_action.action_type = - (sse2_qos_action_type_en) mp->exceed_action.type; + cfg.exceed_action.action_type = (qos_action_type_en) mp->exceed_action.type; cfg.exceed_action.dscp = mp->exceed_action.dscp; cfg.violate_action.action_type = - (sse2_qos_action_type_en) mp->violate_action.type; + (qos_action_type_en) mp->violate_action.type; cfg.violate_action.dscp = mp->violate_action.dscp; cfg.color_aware = mp->color_aware; @@ -97,10 +96,9 @@ vl_api_policer_add_del_t_handler (vl_api_policer_add_del_t * mp) } static void -send_policer_details (u8 * name, - sse2_qos_pol_cfg_params_st * config, - policer_read_response_type_st * templ, - vl_api_registration_t * reg, u32 context) +send_policer_details (u8 *name, qos_pol_cfg_params_st *config, + policer_read_response_type_st *templ, + vl_api_registration_t *reg, u32 context) { vl_api_policer_details_t *mp; @@ -150,7 +148,7 @@ vl_api_policer_dump_t_handler (vl_api_policer_dump_t * mp) u32 pool_index; u8 *match_name = 0; u8 *name; - sse2_qos_pol_cfg_params_st *config; + qos_pol_cfg_params_st *config; policer_read_response_type_st *templ; reg = vl_api_client_index_to_registration (mp->client_index); |