diff options
author | sharath reddy <sharathkumarboyanapally@gmail.com> | 2017-12-11 11:31:31 +0530 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2017-12-13 05:19:13 +0000 |
commit | 6f8273aec1fa3f3d597b090871cc7ac301d7e014 (patch) | |
tree | 767554f021b58dffb1ac2008fd70b99249d5874d /src/vnet/vxlan-gpe/vxlan_gpe_packet.h | |
parent | 129e80e32abb0999b069a2175fbb64635f311ed0 (diff) |
VPP-275 Coding standards cleanup - vnet/vnet/vxlan-gpe
Change-Id: Ifabb8d22d20bc1031664d5f004e74cd363759ab6
Signed-off-by: sharath reddy <sharathkumarboyanapally@gmail.com>
Diffstat (limited to 'src/vnet/vxlan-gpe/vxlan_gpe_packet.h')
-rw-r--r-- | src/vnet/vxlan-gpe/vxlan_gpe_packet.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/vnet/vxlan-gpe/vxlan_gpe_packet.h b/src/vnet/vxlan-gpe/vxlan_gpe_packet.h index ec3c2e586e1..f5e5ddc2347 100644 --- a/src/vnet/vxlan-gpe/vxlan_gpe_packet.h +++ b/src/vnet/vxlan-gpe/vxlan_gpe_packet.h @@ -31,13 +31,13 @@ * | VXLAN Network Identifier (VNI) | Reserved | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * - * I Bit: Flag bit 4 indicates that the VNI is valid. + * I Bit: Flag bit 4 indicates that the VNI is valid. * * P Bit: Flag bit 5 is defined as the Next Protocol bit. The P bit * MUST be set to 1 to indicate the presence of the 8 bit next * protocol field. * - * O Bit: Flag bit 7 is defined as the O bit. When the O bit is set to 1, + * O Bit: Flag bit 7 is defined as the O bit. When the O bit is set to 1, * * the packet is an OAM packet and OAM processing MUST occur. The OAM * protocol details are out of scope for this document. As with the @@ -80,17 +80,19 @@ _ (0x05, IOAM) * 4 - NSH * 5 - IOAM */ -typedef enum { +typedef enum +{ #define _(n,f) VXLAN_GPE_PROTOCOL_##f = n, foreach_vxlan_gpe_protocol #undef _ - VXLAN_GPE_PROTOCOL_MAX, + VXLAN_GPE_PROTOCOL_MAX, } vxlan_gpe_protocol_t; /** * @brief VXLAN GPE Header definition */ -typedef struct { +typedef struct +{ u8 flags; /** Version and Reserved */ u8 ver_res; @@ -108,3 +110,11 @@ typedef struct { #define VXLAN_GPE_VERSION 0x0 #endif /* included_vxlan_gpe_packet_h */ + +/* + * fd.io coding-style-patch-verification: ON + * + * Local Variables: + * eval: (c-set-style "gnu") + * End: + */ |