summaryrefslogtreecommitdiffstats
path: root/src/vnet/vxlan/vxlan.h
diff options
context:
space:
mode:
authoreyal bari <royalbee@gmail.com>2018-04-26 13:14:55 +0300
committerJohn Lo <loj@cisco.com>2018-05-02 04:28:05 +0000
commit82e21d77be726636065278d014539d5c5ee97b88 (patch)
treecbfb9949338efc3e9f35186a6b04385a68e5fbb8 /src/vnet/vxlan/vxlan.h
parentc1a448b3ad16f4ae78527220420fe5c1e41a4ab9 (diff)
vxlan:encap - use vnet rewrite
moving the rewrite into the tunnel struct Change-Id: Iec74b48e13456d32957e826cffb5ea35a8ebd1a0 Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'src/vnet/vxlan/vxlan.h')
-rw-r--r--src/vnet/vxlan/vxlan.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vnet/vxlan/vxlan.h b/src/vnet/vxlan/vxlan.h
index e8bb272d759..8fb031d4af5 100644
--- a/src/vnet/vxlan/vxlan.h
+++ b/src/vnet/vxlan/vxlan.h
@@ -66,9 +66,6 @@ typedef CLIB_PACKED(struct {
}) vxlan6_tunnel_key_t;
typedef struct {
- /* Rewrite string. $$$$ embed vnet_rewrite header */
- u8 * rewrite;
-
/* FIB DPO for IP forwarding of VXLAN encap packet */
dpo_id_t next_dpo;
@@ -114,6 +111,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 \