diff options
author | Damjan Marion <damarion@cisco.com> | 2024-03-12 17:42:49 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2024-03-12 19:29:56 +0000 |
commit | c3148b1be8f519c80c4417c21b978dfef72b351b (patch) | |
tree | 2511eb86e5c429ab018716fed0366164e6faf679 /src/plugins/ct6 | |
parent | e2ed59933153d665ee43add2de03a581627b73fa (diff) |
misc: remove GNU Indent directives
Type: refactor
Change-Id: I5235bf3e9aff58af6ba2c14e8c6529c4fc9ec86c
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/ct6')
-rw-r--r-- | src/plugins/ct6/ct6.c | 18 | ||||
-rw-r--r-- | src/plugins/ct6/ct6.h | 2 | ||||
-rw-r--r-- | src/plugins/ct6/ct6_in2out.c | 2 | ||||
-rw-r--r-- | src/plugins/ct6/ct6_out2in.c | 2 |
4 files changed, 0 insertions, 24 deletions
diff --git a/src/plugins/ct6/ct6.c b/src/plugins/ct6/ct6.c index 205cd3f50ef..e5c69be2c9d 100644 --- a/src/plugins/ct6/ct6.c +++ b/src/plugins/ct6/ct6.c @@ -153,7 +153,6 @@ set_ct6_enable_disable_command_fn (vlib_main_t * vm, return 0; } -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (set_ct6_command, static) = { .path = "set ct6", @@ -161,7 +160,6 @@ VLIB_CLI_COMMAND (set_ct6_command, static) = "set ct6 [inside|outside] <interface-name> [disable]", .function = set_ct6_enable_disable_command_fn, }; -/* *INDENT-ON* */ /* API message handler */ static void vl_api_ct6_enable_disable_t_handler @@ -216,30 +214,24 @@ ct6_init (vlib_main_t * vm) VLIB_INIT_FUNCTION (ct6_init); -/* *INDENT-OFF* */ VNET_FEATURE_INIT (ct6out2in, static) = { .arc_name = "ip6-unicast", .node_name = "ct6-out2in", .runs_before = VNET_FEATURES ("ip6-lookup"), }; -/* *INDENT-ON */ -/* *INDENT-OFF* */ VNET_FEATURE_INIT (ct6in2out, static) = { .arc_name = "interface-output", .node_name = "ct6-in2out", .runs_before = VNET_FEATURES ("interface-output-arc-end"), }; -/* *INDENT-ON */ -/* *INDENT-OFF* */ VLIB_PLUGIN_REGISTER () = { .version = VPP_BUILD_VER, .description = "IPv6 Connection Tracker", }; -/* *INDENT-ON* */ u8 * format_ct6_session (u8 * s, va_list * args) @@ -320,26 +312,22 @@ show_ct6_command_fn_command_fn (vlib_main_t * vm, format (s, "%U", format_ct6_session, cmp, 0 /* pool */ , 0 /* header */ , verbose); - /* *INDENT-OFF* */ pool_foreach (s0, cmp->sessions[i]) { s = format (s, "%U", format_ct6_session, cmp, i, s0, verbose); } - /* *INDENT-ON* */ } vlib_cli_output (cmp->vlib_main, "%v", s); vec_free (s); return 0; } -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (show_ct6_command_fn_command, static) = { .path = "show ip6 connection-tracker", .short_help = "show ip6 connection-tracker", .function = show_ct6_command_fn_command_fn, }; -/* *INDENT-ON* */ static void increment_v6_address (ip6_address_t * a) @@ -429,12 +417,10 @@ test_ct6_command_fn_command_fn (vlib_main_t * vm, created = 0; } - /* *INDENT-OFF* */ pool_foreach (s0, cmp->sessions[0]) { s = format (s, "%U", format_ct6_session, cmp, 0, s0, 1 /* verbose */); } - /* *INDENT-ON* */ vlib_cli_output (vm, "\nEnd state: first index %d last index %d\n%v", cmp->first_index[0], cmp->last_index[0], s); @@ -449,12 +435,10 @@ test_ct6_command_fn_command_fn (vlib_main_t * vm, ct6_update_session_hit (cmp, s0, 234.0); - /* *INDENT-OFF* */ pool_foreach (s0, cmp->sessions[0]) { s = format (s, "%U", format_ct6_session, cmp, 0, s0, 1 /* verbose */); } - /* *INDENT-ON* */ vlib_cli_output (vm, "\nEnd state: first index %d last index %d\n%v", cmp->first_index[0], cmp->last_index[0], s); @@ -464,14 +448,12 @@ test_ct6_command_fn_command_fn (vlib_main_t * vm, return 0; } -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (test_ct6_command_fn_command, static) = { .path = "test ip6 connection-tracker", .short_help = "test ip6 connection-tracker", .function = test_ct6_command_fn_command_fn, }; -/* *INDENT-ON* */ static clib_error_t * ct6_config (vlib_main_t * vm, unformat_input_t * input) diff --git a/src/plugins/ct6/ct6.h b/src/plugins/ct6/ct6.h index 534534f5c99..0b7deb07839 100644 --- a/src/plugins/ct6/ct6.h +++ b/src/plugins/ct6/ct6.h @@ -26,7 +26,6 @@ #include <vppinfra/hash.h> #include <vppinfra/error.h> -/* *INDENT-OFF* */ typedef CLIB_PACKED (struct { union @@ -43,7 +42,6 @@ typedef CLIB_PACKED (struct u64 as_u64[6]; }; }) ct6_session_key_t; -/* *INDENT-ON* */ typedef struct { diff --git a/src/plugins/ct6/ct6_in2out.c b/src/plugins/ct6/ct6_in2out.c index b8bda18370c..c5d26c8caa7 100644 --- a/src/plugins/ct6/ct6_in2out.c +++ b/src/plugins/ct6/ct6_in2out.c @@ -344,7 +344,6 @@ VLIB_NODE_FN (ct6_in2out_node) (vlib_main_t * vm, vlib_node_runtime_t * node, return ct6_in2out_inline (vm, node, frame, 0 /* is_trace */ ); } -/* *INDENT-OFF* */ #ifndef CLIB_MARCH_VARIANT VLIB_REGISTER_NODE (ct6_in2out_node) = { @@ -365,7 +364,6 @@ VLIB_REGISTER_NODE (ct6_in2out_node) = .unformat_buffer = unformat_ethernet_header, }; #endif /* CLIB_MARCH_VARIANT */ -/* *INDENT-ON* */ /* * fd.io coding-style-patch-verification: ON diff --git a/src/plugins/ct6/ct6_out2in.c b/src/plugins/ct6/ct6_out2in.c index ebb6da56134..a94ae38f0c5 100644 --- a/src/plugins/ct6/ct6_out2in.c +++ b/src/plugins/ct6/ct6_out2in.c @@ -246,7 +246,6 @@ VLIB_NODE_FN (ct6_out2in_node) (vlib_main_t * vm, vlib_node_runtime_t * node, return ct6_out2in_inline (vm, node, frame, 0 /* is_trace */ ); } -/* *INDENT-OFF* */ #ifndef CLIB_MARCH_VARIANT VLIB_REGISTER_NODE (ct6_out2in_node) = { @@ -266,7 +265,6 @@ VLIB_REGISTER_NODE (ct6_out2in_node) = }, }; #endif /* CLIB_MARCH_VARIANT */ -/* *INDENT-ON* */ /* * fd.io coding-style-patch-verification: ON |