aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/classify
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-07-14 12:01:17 +0200
committerDamjan Marion <dmarion@me.com>2021-07-14 10:44:59 +0000
commit62ed5435a028c6e61a6c4bf52115b9e62fba011d (patch)
tree2ce0ec1ac17793681ebacb4d9beeff209ddc94f4 /src/vnet/classify
parent37e730651a9094fc9f2da2f75f94e13cc8afaac9 (diff)
classify: cheaper way to check if all elements are zero
Type: improvement Change-Id: I5f4517c65c37c5d73fcd608dc29dfb1d25d4cd8d Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/classify')
-rw-r--r--src/vnet/classify/vnet_classify.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/classify/vnet_classify.h b/src/vnet/classify/vnet_classify.h
index dc2f8f16aa6..fbac77c45bc 100644
--- a/src/vnet/classify/vnet_classify.h
+++ b/src/vnet/classify/vnet_classify.h
@@ -458,7 +458,7 @@ vnet_classify_find_entry_inline (vnet_classify_table_t *t, const u8 *h,
abort ();
}
- if (u32x4_zero_byte_mask (result.as_u32x4) == 0xffff)
+ if (u32x4_is_all_zero (result.as_u32x4))
{
if (PREDICT_TRUE (now))
{