summaryrefslogtreecommitdiffstats
path: root/src/vnet/vxlan-gbp
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-01-09 00:04:04 -0800
committerNeale Ranns <nranns@cisco.com>2019-01-10 13:29:33 +0000
commit45db885a6a050aa809ae333bf6c14349db644822 (patch)
treee58cbf714460230cc842185992d4a2720ccca83b /src/vnet/vxlan-gbp
parente33cab390705f7fd24cf9443a18a96a4e309707d (diff)
ARP/ND: copy opaque2 persistent fields to new packet
Change-Id: Ic65f686aaccaf8450732d88d7471b587faccaa9d Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/vxlan-gbp')
-rw-r--r--src/vnet/vxlan-gbp/encap.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/vnet/vxlan-gbp/encap.c b/src/vnet/vxlan-gbp/encap.c
index d260ccc0deb..f1b839ce316 100644
--- a/src/vnet/vxlan-gbp/encap.c
+++ b/src/vnet/vxlan-gbp/encap.c
@@ -50,6 +50,7 @@ typedef struct
u32 tunnel_index;
u32 vni;
u16 sclass;
+ u8 flags;
} vxlan_gbp_encap_trace_t;
u8 *
@@ -59,8 +60,10 @@ format_vxlan_gbp_encap_trace (u8 * s, va_list * args)
CLIB_UNUSED (vlib_node_t * node) = va_arg (*args, vlib_node_t *);
vxlan_gbp_encap_trace_t *t = va_arg (*args, vxlan_gbp_encap_trace_t *);
- s = format (s, "VXLAN_GBP encap to vxlan_gbp_tunnel%d vni %d sclass %d",
- t->tunnel_index, t->vni, t->sclass);
+ s =
+ format (s,
+ "VXLAN_GBP encap to vxlan_gbp_tunnel%d vni %d sclass %d flags %d",
+ t->tunnel_index, t->vni, t->sclass, t->flags);
return s;
}
@@ -322,6 +325,7 @@ vxlan_gbp_encap_inline (vlib_main_t * vm,
tr->tunnel_index = t0 - vxm->tunnels;
tr->vni = t0->vni;
tr->sclass = vnet_buffer2 (b0)->gbp.src_epg;
+ tr->flags = vnet_buffer2 (b0)->gbp.flags;
}
if (PREDICT_FALSE (b1->flags & VLIB_BUFFER_IS_TRACED))
@@ -331,6 +335,7 @@ vxlan_gbp_encap_inline (vlib_main_t * vm,
tr->tunnel_index = t1 - vxm->tunnels;
tr->vni = t1->vni;
tr->sclass = vnet_buffer2 (b1)->gbp.src_epg;
+ tr->flags = vnet_buffer2 (b1)->gbp.flags;
}
vlib_validate_buffer_enqueue_x2 (vm, node, next_index,
@@ -465,6 +470,7 @@ vxlan_gbp_encap_inline (vlib_main_t * vm,
tr->tunnel_index = t0 - vxm->tunnels;
tr->vni = t0->vni;
tr->sclass = vnet_buffer2 (b0)->gbp.src_epg;
+ tr->flags = vnet_buffer2 (b0)->gbp.flags;
}
vlib_validate_buffer_enqueue_x1 (vm, node, next_index,
to_next, n_left_to_next,