examples/l3fwd: fix ARM build
[dpdk.git] / examples / l3fwd / l3fwd.h
index f450269..7dcc7e5 100644 (file)
@@ -34,6 +34,8 @@
 #ifndef __L3_FWD_H__
 #define __L3_FWD_H__
 
+#include <rte_vect.h>
+
 #define DO_RFC_1812_CHECKS
 
 #define RTE_LOGTYPE_L3FWD RTE_LOGTYPE_USER1
 /* Configure how many packets ahead to prefetch, when reading packets */
 #define PREFETCH_OFFSET          3
 
+/* Used to mark destination port as 'invalid'. */
+#define        BAD_PORT ((uint16_t)-1)
+
+#define FWDSTEP        4
+
+/* replace first 12B of the ethernet header. */
+#define        MASK_ETH 0x3f
+
 /* Hash parameters. */
 #ifdef RTE_ARCH_X86_64
 /* default to 4 million hash entries (approx) */
@@ -95,7 +105,7 @@ extern uint32_t enabled_port_mask;
 extern int ipv6; /**< ipv6 is false by default. */
 extern uint32_t hash_entry_number;
 
-extern __m128i val_eth[RTE_MAX_ETHPORTS];
+extern xmm_t val_eth[RTE_MAX_ETHPORTS];
 
 extern struct lcore_conf lcore_conf[RTE_MAX_LCORE];