summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-02-20 08:33:50 +0100
committerDamjan Marion <damarion@cisco.com>2018-02-20 08:53:19 +0100
commit927b0714d758356f03c0b3402fe87dc934154d95 (patch)
treee8402143d7b375c8d5985bc33df97c451ebe3bf3 /src/vnet
parentcfcf2f476a7be442844523e99f1867c9386c043e (diff)
vppinfra: CLIB_HAVE_VEC128 mandates SSE4.2
Change-Id: I6511110d0472203498a4f8741781eeeeb4f90844 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/classify/vnet_classify.h2
-rw-r--r--src/vnet/ethernet/ethernet.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/classify/vnet_classify.h b/src/vnet/classify/vnet_classify.h
index 79e7f1a844e..6cbbf10aa2e 100644
--- a/src/vnet/classify/vnet_classify.h
+++ b/src/vnet/classify/vnet_classify.h
@@ -41,7 +41,7 @@ extern vlib_node_registration_t ip6_classify_node;
#define CLASSIFY_TRACE 0
-#if !defined( __aarch64__) && !defined(__arm__)
+#ifdef CLIB_HAVE_VEC128
#define CLASSIFY_USE_SSE //Allow usage of SSE operations
#endif
diff --git a/src/vnet/ethernet/ethernet.h b/src/vnet/ethernet/ethernet.h
index 389bc1b3bf4..fb7e2c5ba81 100644
--- a/src/vnet/ethernet/ethernet.h
+++ b/src/vnet/ethernet/ethernet.h
@@ -67,6 +67,7 @@ ethernet_mac_address_is_zero (u8 * mac)
return ((*((u32 *) mac) == 0) && (*((u16 *) (mac + 4)) == 0));
}
+#ifdef CLIB_HAVE_VEC128
static const u16x8 tagged_ethertypes = {
(u16) ETHERNET_TYPE_VLAN,
(u16) ETHERNET_TYPE_DOT1AD,
@@ -78,6 +79,7 @@ static const u16x8 tagged_ethertypes = {
(u16) ETHERNET_TYPE_VLAN_9200,
(u16) ETHERNET_TYPE_VLAN_9200
};
+#endif
static_always_inline int
ethernet_frame_is_tagged (u16 type)