Harmonize vec/pool_get_aligned object sizes and alignment requests
[vpp.git] / src / vnet / vxlan / vxlan.h
index e8bb272..3c74bfd 100644 (file)
@@ -66,8 +66,8 @@ typedef CLIB_PACKED(struct {
 }) vxlan6_tunnel_key_t;
 
 typedef struct {
-  /* Rewrite string. $$$$ embed vnet_rewrite header */
-  u8 * rewrite;
+  /* Required for pool_get_aligned */
+  CLIB_CACHE_LINE_ALIGN_MARK(cacheline0);
 
   /* FIB DPO for IP forwarding of VXLAN encap packet */
   dpo_id_t next_dpo;  
@@ -114,6 +114,8 @@ typedef struct {
 
   u32 dev_instance;    /* Real device instance in tunnel vector */
   u32 user_instance;   /* Instance name being shown to user */
+
+  vnet_declare_rewrite (VLIB_BUFFER_PRE_DATA_SIZE);
 } vxlan_tunnel_t;
 
 #define foreach_vxlan_input_next        \