diff options
author | Keith Burns (alagalah) <alagalah@gmail.com> | 2016-08-15 18:33:19 -0700 |
---|---|---|
committer | Keith Burns (alagalah) <alagalah@gmail.com> | 2016-08-15 20:23:10 -0700 |
commit | e70dcc8676b6b2db74989e43f116bbb200239bf8 (patch) | |
tree | 4a582b7d9b2247111dfbc5d4179e3fc6e154f32f /vnet/vnet/ethernet/init.c | |
parent | 81b52c5506ad3ded98dc82fbe4603eec7ad72b8a (diff) |
VPP251 - Code style vnet/vnet/ethernet
Change-Id: I3e51ca70a8e1ac7f6584bc5b0271ee4daacc1084
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
Diffstat (limited to 'vnet/vnet/ethernet/init.c')
-rw-r--r-- | vnet/vnet/ethernet/init.c | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/vnet/vnet/ethernet/init.c b/vnet/vnet/ethernet/init.c index 9206524e953..b561a36144e 100644 --- a/vnet/vnet/ethernet/init.c +++ b/vnet/vnet/ethernet/init.c @@ -43,11 +43,10 @@ /* Global main structure. */ ethernet_main_t ethernet_main; -static void add_type (ethernet_main_t * em, - ethernet_type_t type, - char * type_name) +static void +add_type (ethernet_main_t * em, ethernet_type_t type, char *type_name) { - ethernet_type_info_t * ti; + ethernet_type_info_t *ti; u32 i; vec_add2 (em->type_infos, ti, 1); @@ -61,16 +60,17 @@ static void add_type (ethernet_main_t * em, hash_set_mem (em->type_info_by_name, ti->name, i); } -static clib_error_t * ethernet_init (vlib_main_t * vm) +static clib_error_t * +ethernet_init (vlib_main_t * vm) { - ethernet_main_t * em = ðernet_main; - clib_error_t * error; + ethernet_main_t *em = ðernet_main; + clib_error_t *error; /* * Set up the L2 path now, or we'll wipe out the L2 ARP * registration set up by ethernet_arp_init. */ - if ((error = vlib_call_init_function(vm, l2_init))) + if ((error = vlib_call_init_function (vm, l2_init))) return error; em->vlib_main = vm; @@ -92,9 +92,18 @@ static clib_error_t * ethernet_init (vlib_main_t * vm) VLIB_INIT_FUNCTION (ethernet_init); -ethernet_main_t * ethernet_get_main (vlib_main_t * vm) +ethernet_main_t * +ethernet_get_main (vlib_main_t * vm) { vlib_call_init_function (vm, ethernet_init); return ðernet_main; } + +/* + * fd.io coding-style-patch-verification: ON + * + * Local Variables: + * eval: (c-set-style "gnu") + * End: + */ |