From c5299ff30a6186f580509eda2c4db3decfffe967 Mon Sep 17 00:00:00 2001 From: Brian Russell Date: Tue, 9 Feb 2021 10:16:58 +0000 Subject: 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 Change-Id: I59a7df9fd5ded2575f2e587b2768a025a213b07c --- src/vnet/ip/ip_punt_drop.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/vnet/ip') diff --git a/src/vnet/ip/ip_punt_drop.h b/src/vnet/ip/ip_punt_drop.h index 11affcb6e28..6e7ac5b3c4c 100644 --- a/src/vnet/ip/ip_punt_drop.h +++ b/src/vnet/ip/ip_punt_drop.h @@ -140,12 +140,12 @@ ip_punt_policer (vlib_main_t * vm, vnet_policer_police (vm, b1, policer_index, time_in_policer_periods, POLICE_CONFORM); - if (PREDICT_FALSE (act0 == SSE2_QOS_ACTION_DROP)) + if (PREDICT_FALSE (act0 == QOS_ACTION_DROP)) { next0 = IP_PUNT_POLICER_NEXT_DROP; b0->error = node->errors[IP_PUNT_POLICER_ERROR_DROP]; } - if (PREDICT_FALSE (act1 == SSE2_QOS_ACTION_DROP)) + if (PREDICT_FALSE (act1 == QOS_ACTION_DROP)) { next1 = IP_PUNT_POLICER_NEXT_DROP; b1->error = node->errors[IP_PUNT_POLICER_ERROR_DROP]; @@ -200,7 +200,7 @@ ip_punt_policer (vlib_main_t * vm, act0 = vnet_policer_police (vm, b0, policer_index, time_in_policer_periods, POLICE_CONFORM); - if (PREDICT_FALSE (act0 == SSE2_QOS_ACTION_DROP)) + if (PREDICT_FALSE (act0 == QOS_ACTION_DROP)) { next0 = IP_PUNT_POLICER_NEXT_DROP; b0->error = node->errors[IP_PUNT_POLICER_ERROR_DROP]; -- cgit 1.2.3-korg