X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fclassify%2Fvnet_classify.h;h=4fea95d5b72bf05648c30566fdf6e2b2e372f588;hb=e9cebdf4c12adf7962ab2a2053789c93d70c33d3;hp=40628015501a1366b740230384abe92877fd0657;hpb=d7bfa0e4fedb896f9c2808053c6c6620d3a41a43;p=vpp.git diff --git a/src/vnet/classify/vnet_classify.h b/src/vnet/classify/vnet_classify.h index 40628015501..4fea95d5b72 100644 --- a/src/vnet/classify/vnet_classify.h +++ b/src/vnet/classify/vnet_classify.h @@ -26,8 +26,6 @@ #include #include #include -#include -#include #include /* for API error numbers */ #include @@ -40,10 +38,6 @@ extern vlib_node_registration_t ip6_classify_node; #define CLASSIFY_TRACE 0 -#if !defined( __aarch64__) && !defined(__arm__) -#define CLASSIFY_USE_SSE //Allow usage of SSE operations -#endif - #define U32X4_ALIGNED(p) PREDICT_TRUE((((intptr_t)p) & 0xf) == 0) /* @@ -232,7 +226,7 @@ vnet_classify_hash_packet_inline (vnet_classify_table_t * t, u8 * h) ASSERT (t); mask = t->mask; -#ifdef CLASSIFY_USE_SSE +#ifdef CLIB_HAVE_VEC128 if (U32X4_ALIGNED (h)) { //SSE can't handle unaligned data u32x4 *data = (u32x4 *) h; @@ -258,7 +252,7 @@ vnet_classify_hash_packet_inline (vnet_classify_table_t * t, u8 * h) } } else -#endif /* CLASSIFY_USE_SSE */ +#endif /* CLIB_HAVE_VEC128 */ { u32 skip_u64 = t->skip_n_vectors * 2; u64 *data64 = (u64 *) h; @@ -406,7 +400,7 @@ vnet_classify_find_entry_inline (vnet_classify_table_t * t, v = vnet_classify_entry_at_index (t, v, value_index); -#ifdef CLASSIFY_USE_SSE +#ifdef CLIB_HAVE_VEC128 if (U32X4_ALIGNED (h)) { u32x4 *data = (u32x4 *) h; @@ -451,7 +445,7 @@ vnet_classify_find_entry_inline (vnet_classify_table_t * t, } } else -#endif /* CLASSIFY_USE_SSE */ +#endif /* CLIB_HAVE_VEC128 */ { u32 skip_u64 = t->skip_n_vectors * 2; u64 *data64 = (u64 *) h;