misc: add code styling for vxlan encap and vxlan_packet files
Type: style Change-Id: Id363ccd0e51c61388fb45ef10685929f629cccbd Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -41,7 +41,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct {
|
typedef struct
|
||||||
|
{
|
||||||
u8 flags;
|
u8 flags;
|
||||||
u8 res1;
|
u8 res1;
|
||||||
u8 res2;
|
u8 res2;
|
||||||
@ -51,7 +52,8 @@ typedef struct {
|
|||||||
|
|
||||||
#define VXLAN_FLAGS_I 0x08
|
#define VXLAN_FLAGS_I 0x08
|
||||||
|
|
||||||
static inline u32 vnet_get_vni (vxlan_header_t * h)
|
static inline u32
|
||||||
|
vnet_get_vni (vxlan_header_t * h)
|
||||||
{
|
{
|
||||||
u32 vni_reserved_host_byte_order;
|
u32 vni_reserved_host_byte_order;
|
||||||
|
|
||||||
@ -59,11 +61,20 @@ static inline u32 vnet_get_vni (vxlan_header_t * h)
|
|||||||
return vni_reserved_host_byte_order >> 8;
|
return vni_reserved_host_byte_order >> 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void vnet_set_vni_and_flags (vxlan_header_t * h, u32 vni)
|
static inline void
|
||||||
|
vnet_set_vni_and_flags (vxlan_header_t * h, u32 vni)
|
||||||
{
|
{
|
||||||
h->vni_reserved = clib_host_to_net_u32 (vni<<8);
|
h->vni_reserved = clib_host_to_net_u32 (vni << 8);
|
||||||
* (u32 *) h = 0;
|
*(u32 *) h = 0;
|
||||||
h->flags = VXLAN_FLAGS_I;
|
h->flags = VXLAN_FLAGS_I;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __included_vxlan_packet_h__ */
|
#endif /* __included_vxlan_packet_h__ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* fd.io coding-style-patch-verification: ON
|
||||||
|
*
|
||||||
|
* Local Variables:
|
||||||
|
* eval: (c-set-style "gnu")
|
||||||
|
* End:
|
||||||
|
*/
|
||||||
|
Reference in New Issue
Block a user