misc: remove GNU Indent directives
Type: refactor Change-Id: I5235bf3e9aff58af6ba2c14e8c6529c4fc9ec86c Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
e2ed599331
commit
c3148b1be8
@ -74,12 +74,10 @@ vnet_flow_del (vnet_main_t * vnm, u32 flow_index)
|
||||
if (f == 0)
|
||||
return VNET_FLOW_ERROR_NO_SUCH_ENTRY;
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
hash_foreach (hw_if_index, private_data, f->private_data,
|
||||
({
|
||||
vnet_flow_disable (vnm, flow_index, hw_if_index);
|
||||
}));
|
||||
/* *INDENT-ON* */
|
||||
|
||||
hash_free (f->private_data);
|
||||
clib_memset (f, 0, sizeof (*f));
|
||||
|
@ -299,12 +299,10 @@ vl_api_flow_add_t_handler (vl_api_flow_add_t * mp)
|
||||
rv = vnet_flow_add (vnm, &flow, &flow_index);
|
||||
|
||||
out:
|
||||
/* *INDENT-OFF* */
|
||||
REPLY_MACRO2(VL_API_FLOW_ADD_REPLY,
|
||||
({
|
||||
rmp->flow_index = ntohl (flow_index);
|
||||
}));
|
||||
/* *INDENT-ON* */
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -138,13 +138,11 @@ format_flow_enabled_hw (u8 * s, va_list * args)
|
||||
u32 hw_if_index;
|
||||
uword private_data;
|
||||
vnet_main_t *vnm = vnet_get_main ();
|
||||
/* *INDENT-OFF* */
|
||||
hash_foreach (hw_if_index, private_data, f->private_data,
|
||||
({
|
||||
t = format (t, "%s%U", t ? ", " : "",
|
||||
format_vnet_hw_if_index_name, vnm, hw_if_index);
|
||||
}));
|
||||
/* *INDENT-ON* */
|
||||
s = format (s, "%v", t);
|
||||
vec_free (t);
|
||||
return s;
|
||||
@ -228,7 +226,6 @@ show_flow_entry (vlib_main_t * vm, unformat_input_t * input,
|
||||
vlib_cli_output (vm, "%s: %s", "spec", f->generic.pattern.spec);
|
||||
vlib_cli_output (vm, "%s: %s", "mask", f->generic.pattern.mask);
|
||||
}
|
||||
/* *INDENT-OFF* */
|
||||
hash_foreach (hw_if_index, private_data, f->private_data,
|
||||
({
|
||||
hi = vnet_get_hw_interface (vnm, hw_if_index);
|
||||
@ -239,12 +236,10 @@ show_flow_entry (vlib_main_t * vm, unformat_input_t * input,
|
||||
vlib_cli_output (vm, " %U\n", dev_class->format_flow,
|
||||
hi->dev_instance, f->index, private_data);
|
||||
}));
|
||||
/* *INDENT-ON* */
|
||||
return 0;
|
||||
}
|
||||
|
||||
no_args:
|
||||
/* *INDENT-OFF* */
|
||||
pool_foreach (f, fm->global_flow_pool)
|
||||
{
|
||||
vlib_cli_output (vm, "%U\n", format_flow, f);
|
||||
@ -254,18 +249,15 @@ no_args:
|
||||
vlib_cli_output (vm, "%s: %s", "mask", f->generic.pattern.mask);
|
||||
}
|
||||
}
|
||||
/* *INDENT-ON* */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
VLIB_CLI_COMMAND (show_flow_entry_command, static) = {
|
||||
.path = "show flow entry",
|
||||
.short_help = "show flow entry [index <index>]",
|
||||
.function = show_flow_entry,
|
||||
};
|
||||
/* *INDENT-ON* */
|
||||
|
||||
static clib_error_t *
|
||||
show_flow_ranges (vlib_main_t * vm, unformat_input_t * input,
|
||||
@ -276,22 +268,18 @@ show_flow_ranges (vlib_main_t * vm, unformat_input_t * input,
|
||||
|
||||
vlib_cli_output (vm, "%8s %8s %s", "Start", "Count", "Owner");
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
vec_foreach (r, fm->ranges)
|
||||
{
|
||||
vlib_cli_output (vm, "%8u %8u %s", r->start, r->count, r->owner);
|
||||
};
|
||||
/* *INDENT-ON* */
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
VLIB_CLI_COMMAND (show_flow_ranges_command, static) = {
|
||||
.path = "show flow ranges",
|
||||
.short_help = "show flow ranges",
|
||||
.function = show_flow_ranges,
|
||||
};
|
||||
/* *INDENT-ON* */
|
||||
|
||||
static clib_error_t *
|
||||
show_flow_interface (vlib_main_t * vm, unformat_input_t * input,
|
||||
@ -329,13 +317,11 @@ show_flow_interface (vlib_main_t * vm, unformat_input_t * input,
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
VLIB_CLI_COMMAND (show_flow_interface_command, static) = {
|
||||
.path = "show flow interface",
|
||||
.short_help = "show flow interface <interface name>",
|
||||
.function = show_flow_interface,
|
||||
};
|
||||
/* *INDENT-ON* */
|
||||
|
||||
static clib_error_t *
|
||||
test_flow (vlib_main_t * vm, unformat_input_t * input,
|
||||
@ -833,7 +819,6 @@ test_flow (vlib_main_t * vm, unformat_input_t * input,
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
VLIB_CLI_COMMAND (test_flow_command, static) = {
|
||||
.path = "test flow",
|
||||
.short_help = "test flow [add|del|enable|disable] [index <id>] "
|
||||
@ -850,7 +835,6 @@ VLIB_CLI_COMMAND (test_flow_command, static) = {
|
||||
"[rss queues <queue_start> to <queue_end>]",
|
||||
.function = test_flow,
|
||||
};
|
||||
/* *INDENT-ON* */
|
||||
|
||||
static u8 *
|
||||
format_flow_match_element (u8 * s, va_list * args)
|
||||
|
Reference in New Issue
Block a user