summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip_punt_drop.h
diff options
context:
space:
mode:
authorBrian Russell <brian@graphiant.com>2021-02-09 10:16:58 +0000
committerNeale Ranns <neale@graphiant.com>2021-02-12 14:55:58 +0000
commitc5299ff30a6186f580509eda2c4db3decfffe967 (patch)
tree019738ecade99e21539171dab723b4cba0bc7d72 /src/vnet/ip/ip_punt_drop.h
parentcf0102b3ba69cb6bad6b1bae159e51976e2331f8 (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/ip/ip_punt_drop.h')
-rw-r--r--src/vnet/ip/ip_punt_drop.h6
1 files changed, 3 insertions, 3 deletions
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];