diff options
author | John Lo <loj@cisco.com> | 2018-02-27 16:35:03 -0500 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-03-01 13:09:57 +0000 |
commit | 2bf8b8154d0e1707fbf8502eb8e85fdda885a8e5 (patch) | |
tree | 24804592e3a4a738dfe306b468547ad9377c6541 /src/vnet/gre/packet.h | |
parent | 3c6a976325f32f880b7e53f50ebe86fa0e8476c9 (diff) |
Fix ERSPAN encap to set EN bits in the header and add test case
For ERSPAN encap, both bits in the EN field of the header should
be set to indicate any VLAN tag in the original Ethernet frame is
preserved.
Added SPAN L2 test case where the mirrored packet output is a GRE
ERSPAN tunnel.
Change-Id: Ie7a40992a9278469c24aa6fa9e122b4505797d10
Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'src/vnet/gre/packet.h')
-rw-r--r-- | src/vnet/gre/packet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/gre/packet.h b/src/vnet/gre/packet.h index 034a611eda3..bbd67d565c5 100644 --- a/src/vnet/gre/packet.h +++ b/src/vnet/gre/packet.h @@ -160,6 +160,9 @@ typedef CLIB_PACKED (struct { /* *INDENT-ON* */ +/* u64 template for ERSPAN type 2 header with both EN bits set */ +#define ERSPAN_HDR2 0x1000180000000000ul + #endif /* included_vnet_gre_packet_h */ /* |