diff options
Diffstat (limited to 'src/vnet/span')
-rw-r--r-- | src/vnet/span/node.c | 4 | ||||
-rw-r--r-- | src/vnet/span/span.c | 4 | ||||
-rw-r--r-- | src/vnet/span/span_api.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/vnet/span/node.c b/src/vnet/span/node.c index 1a9d1bae724..ca5ea68ae90 100644 --- a/src/vnet/span/node.c +++ b/src/vnet/span/node.c @@ -85,7 +85,7 @@ span_mirror (vlib_main_t * vm, vlib_node_runtime_t * node, u32 sw_if_index0, return; /* *INDENT-OFF* */ - clib_bitmap_foreach (i, sm0->mirror_ports, ( + clib_bitmap_foreach (i, sm0->mirror_ports) { if (mirror_frames[i] == 0) { @@ -121,7 +121,7 @@ span_mirror (vlib_main_t * vm, vlib_node_runtime_t * node, u32 sw_if_index0, #endif } } - })); + } /* *INDENT-ON* */ } diff --git a/src/vnet/span/span.c b/src/vnet/span/span.c index fc923e0ce31..ec47920504a 100644 --- a/src/vnet/span/span.c +++ b/src/vnet/span/span.c @@ -212,7 +212,7 @@ show_interfaces_span_command_fn (vlib_main_t * vm, } s = format (s, "%U", format_vnet_sw_if_index_name, vnm, si - sm->interfaces); - clib_bitmap_foreach (i, b, ( + clib_bitmap_foreach (i, b) { int device = (clib_bitmap_get (drxm->mirror_ports, i) + clib_bitmap_get (dtxm->mirror_ports, i) * 2); @@ -223,7 +223,7 @@ show_interfaces_span_command_fn (vlib_main_t * vm, format_vnet_sw_if_index_name, vnm, i, states[device], states[l2]); vec_reset_length (s); - })); + } clib_bitmap_free (b); clib_bitmap_free (l); clib_bitmap_free (d); diff --git a/src/vnet/span/span_api.c b/src/vnet/span/span_api.c index dacbe2e0aa9..96d1facc2df 100644 --- a/src/vnet/span/span_api.c +++ b/src/vnet/span/span_api.c @@ -86,7 +86,7 @@ vl_api_sw_interface_span_dump_t_handler (vl_api_sw_interface_span_dump_t * mp) clib_bitmap_t *b; u32 i; b = clib_bitmap_dup_or (rxm->mirror_ports, txm->mirror_ports); - clib_bitmap_foreach (i, b, ( + clib_bitmap_foreach (i, b) { rmp = vl_msg_api_alloc (sizeof (*rmp)); clib_memset (rmp, 0, sizeof (*rmp)); @@ -100,7 +100,7 @@ vl_api_sw_interface_span_dump_t_handler (vl_api_sw_interface_span_dump_t * mp) rmp->is_l2 = mp->is_l2; vl_api_send_msg (reg, (u8 *) rmp); - })); + } clib_bitmap_free (b); } } |