From 6f8273aec1fa3f3d597b090871cc7ac301d7e014 Mon Sep 17 00:00:00 2001 From: sharath reddy Date: Mon, 11 Dec 2017 11:31:31 +0530 Subject: VPP-275 Coding standards cleanup - vnet/vnet/vxlan-gpe Change-Id: Ifabb8d22d20bc1031664d5f004e74cd363759ab6 Signed-off-by: sharath reddy --- src/vnet/vxlan-gpe/vxlan_gpe_packet.h | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'src/vnet/vxlan-gpe/vxlan_gpe_packet.h') 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: + */ -- cgit 1.2.3-korg