X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fl2%2Fl2_flood.c;h=97a4ff59da7b585bfbeb9cb4e29a113c400b545d;hb=b474380f;hp=8a635cec2085b5ce95c2b4c443d0253ec7bfaf0f;hpb=fe80c49740f1cf51c3e0414e0b4540fe985a59e4;p=vpp.git diff --git a/src/vnet/l2/l2_flood.c b/src/vnet/l2/l2_flood.c index 8a635cec208..97a4ff59da7 100644 --- a/src/vnet/l2/l2_flood.c +++ b/src/vnet/l2/l2_flood.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include @@ -156,11 +155,12 @@ l2flood_node_fn (vlib_main_t * vm, while (n_left_from > 0 && n_left_to_next > 0) { - u32 next0, sw_if_index0, bi0, ci0; u16 n_clones, n_cloned, clone0; l2_bridge_domain_t *bd_config; + u32 sw_if_index0, bi0, ci0; l2_flood_member_t *member; vlib_buffer_t *b0, *c0; + u16 next0; u8 in_shg; i32 mi; @@ -214,7 +214,7 @@ l2flood_node_fn (vlib_main_t * vm, vec_reset_length (msm->clones[thread_index]); /* - * the header offset needs to be large enoguh to incorporate + * the header offset needs to be large enough to incorporate * all the L3 headers that could be touched when doing BVI * processing. So take the current l2 length plus 2 * IPv6 * headers (for tunnel encap) @@ -372,10 +372,12 @@ VLIB_REGISTER_NODE (l2flood_node,static) = { [L2FLOOD_NEXT_DROP] = "error-drop", }, }; -/* *INDENT-ON* */ VLIB_NODE_FUNCTION_MULTIARCH (l2flood_node, l2flood_node_fn) - clib_error_t *l2flood_init (vlib_main_t * vm) +/* *INDENT-ON* */ + +clib_error_t * +l2flood_init (vlib_main_t * vm) { l2flood_main_t *mp = &l2flood_main;