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/vxlan | |
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/vxlan')
-rw-r--r-- | src/plugins/vxlan/decap.c | 8 | ||||
-rw-r--r-- | src/plugins/vxlan/encap.c | 2 | ||||
-rw-r--r-- | src/plugins/vxlan/vxlan.c | 18 | ||||
-rw-r--r-- | src/plugins/vxlan/vxlan.h | 2 |
4 files changed, 0 insertions, 30 deletions
diff --git a/src/plugins/vxlan/decap.c b/src/plugins/vxlan/decap.c index f5d1efa2b86..5f28c5e97bb 100644 --- a/src/plugins/vxlan/decap.c +++ b/src/plugins/vxlan/decap.c @@ -412,7 +412,6 @@ static char *vxlan_error_strings[] = { #undef vxlan_error }; -/* *INDENT-OFF* */ VLIB_REGISTER_NODE (vxlan4_input_node) = { .name = "vxlan4-input", @@ -442,7 +441,6 @@ VLIB_REGISTER_NODE (vxlan6_input_node) = }, .format_trace = format_vxlan_rx_trace, }; -/* *INDENT-ON* */ typedef enum { @@ -875,7 +873,6 @@ VLIB_NODE_FN (ip4_vxlan_bypass_node) (vlib_main_t * vm, return ip_vxlan_bypass_inline (vm, node, frame, /* is_ip4 */ 1); } -/* *INDENT-OFF* */ VLIB_REGISTER_NODE (ip4_vxlan_bypass_node) = { .name = "ip4-vxlan-bypass", @@ -889,7 +886,6 @@ VLIB_REGISTER_NODE (ip4_vxlan_bypass_node) = .format_trace = format_ip4_forward_next_trace, }; -/* *INDENT-ON* */ /* Dummy init function to get us linked in. */ static clib_error_t * @@ -907,7 +903,6 @@ VLIB_NODE_FN (ip6_vxlan_bypass_node) (vlib_main_t * vm, return ip_vxlan_bypass_inline (vm, node, frame, /* is_ip4 */ 0); } -/* *INDENT-OFF* */ VLIB_REGISTER_NODE (ip6_vxlan_bypass_node) = { .name = "ip6-vxlan-bypass", @@ -921,7 +916,6 @@ VLIB_REGISTER_NODE (ip6_vxlan_bypass_node) = .format_trace = format_ip6_forward_next_trace, }; -/* *INDENT-ON* */ /* Dummy init function to get us linked in. */ static clib_error_t * @@ -1299,7 +1293,6 @@ VLIB_NODE_FN (vxlan4_flow_input_node) (vlib_main_t * vm, return f->n_vectors; } -/* *INDENT-OFF* */ #ifndef CLIB_MULTIARCH_VARIANT VLIB_REGISTER_NODE (vxlan4_flow_input_node) = { .name = "vxlan-flow-input", @@ -1319,7 +1312,6 @@ VLIB_REGISTER_NODE (vxlan4_flow_input_node) = { }, }; #endif -/* *INDENT-ON* */ /* * fd.io coding-style-patch-verification: ON diff --git a/src/plugins/vxlan/encap.c b/src/plugins/vxlan/encap.c index e4103ec0083..98464d809ba 100644 --- a/src/plugins/vxlan/encap.c +++ b/src/plugins/vxlan/encap.c @@ -503,7 +503,6 @@ VLIB_NODE_FN (vxlan6_encap_node) (vlib_main_t * vm, return vxlan_encap_inline (vm, node, from_frame, /* is_ip4 */ 0); } -/* *INDENT-OFF* */ VLIB_REGISTER_NODE (vxlan4_encap_node) = { .name = "vxlan4-encap", .vector_size = sizeof (u32), @@ -529,7 +528,6 @@ VLIB_REGISTER_NODE (vxlan6_encap_node) = { [VXLAN_ENCAP_NEXT_DROP] = "error-drop", }, }; -/* *INDENT-ON* */ /* * fd.io coding-style-patch-verification: ON diff --git a/src/plugins/vxlan/vxlan.c b/src/plugins/vxlan/vxlan.c index f1ab7a7cb8b..0885550d257 100644 --- a/src/plugins/vxlan/vxlan.c +++ b/src/plugins/vxlan/vxlan.c @@ -128,14 +128,12 @@ vxlan_interface_admin_up_down (vnet_main_t * vnm, u32 hw_if_index, u32 flags) return /* no error */ 0; } -/* *INDENT-OFF* */ VNET_DEVICE_CLASS (vxlan_device_class, static) = { .name = "VXLAN", .format_device_name = format_vxlan_name, .format_tx_trace = format_vxlan_encap_trace, .admin_up_down_function = vxlan_interface_admin_up_down, }; -/* *INDENT-ON* */ static u8 * format_vxlan_header_with_length (u8 * s, va_list * args) @@ -145,13 +143,11 @@ format_vxlan_header_with_length (u8 * s, va_list * args) return s; } -/* *INDENT-OFF* */ VNET_HW_INTERFACE_CLASS (vxlan_hw_class) = { .name = "VXLAN", .format_header = format_vxlan_header_with_length, .build_rewrite = default_build_rewrite, }; -/* *INDENT-ON* */ static void vxlan_tunnel_restack_dpo (vxlan_tunnel_t * t) @@ -318,7 +314,6 @@ vxlan_decap_next_is_valid (vxlan_main_t * vxm, u32 is_ip6, return decap_next_index < r->n_next_nodes; } -/* *INDENT-OFF* */ typedef CLIB_PACKED(union { struct @@ -328,7 +323,6 @@ typedef CLIB_PACKED(union }; u64 as_u64; }) mcast_shared_t; -/* *INDENT-ON* */ static inline mcast_shared_t mcast_shared_get (ip46_address_t * ip) @@ -915,7 +909,6 @@ vxlan_add_del_tunnel_command_fn (vlib_main_t * vm, * Example of how to delete a VXLAN Tunnel: * @cliexcmd{create vxlan tunnel src 10.0.3.1 dst 10.0.3.3 vni 13 del} ?*/ -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (create_vxlan_tunnel_command, static) = { .path = "create vxlan tunnel", .short_help = @@ -926,7 +919,6 @@ VLIB_CLI_COMMAND (create_vxlan_tunnel_command, static) = { " [src_port <local-vtep-udp-port>] [dst_port <remote-vtep-udp-port>]", .function = vxlan_add_del_tunnel_command_fn, }; -/* *INDENT-ON* */ static clib_error_t * show_vxlan_tunnel_command_fn (vlib_main_t * vm, @@ -949,12 +941,10 @@ show_vxlan_tunnel_command_fn (vlib_main_t * vm, if (pool_elts (vxm->tunnels) == 0) vlib_cli_output (vm, "No vxlan tunnels configured..."); -/* *INDENT-OFF* */ pool_foreach (t, vxm->tunnels) { vlib_cli_output (vm, "%U", format_vxlan_tunnel, t); } -/* *INDENT-ON* */ if (raw) { @@ -979,13 +969,11 @@ show_vxlan_tunnel_command_fn (vlib_main_t * vm, encap_fib_index 0 sw_if_index 5 decap_next l2 * @cliexend ?*/ -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (show_vxlan_tunnel_command, static) = { .path = "show vxlan tunnel", .short_help = "show vxlan tunnel [raw]", .function = show_vxlan_tunnel_command_fn, }; -/* *INDENT-ON* */ void @@ -1119,13 +1107,11 @@ set_ip4_vxlan_bypass (vlib_main_t * vm, * @cliexcmd{set interface ip vxlan-bypass GigabitEthernet2/0/0 del} * @endparblock ?*/ -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (set_interface_ip_vxlan_bypass_command, static) = { .path = "set interface ip vxlan-bypass", .function = set_ip4_vxlan_bypass, .short_help = "set interface ip vxlan-bypass <interface> [del]", }; -/* *INDENT-ON* */ static clib_error_t * set_ip6_vxlan_bypass (vlib_main_t * vm, @@ -1176,13 +1162,11 @@ set_ip6_vxlan_bypass (vlib_main_t * vm, * @cliexcmd{set interface ip6 vxlan-bypass GigabitEthernet2/0/0 del} * @endparblock ?*/ -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (set_interface_ip6_vxlan_bypass_command, static) = { .path = "set interface ip6 vxlan-bypass", .function = set_ip6_vxlan_bypass, .short_help = "set interface ip6 vxlan-bypass <interface> [del]", }; -/* *INDENT-ON* */ int vnet_vxlan_add_del_rx_flow (u32 hw_if_index, u32 t_index, int is_add) @@ -1297,14 +1281,12 @@ vxlan_offload_command_fn (vlib_main_t * vm, return 0; } -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (vxlan_offload_command, static) = { .path = "set flow-offload vxlan", .short_help = "set flow-offload vxlan hw <interface-name> rx <tunnel-name> [del]", .function = vxlan_offload_command_fn, }; -/* *INDENT-ON* */ #define VXLAN_HASH_NUM_BUCKETS (2 * 1024) #define VXLAN_HASH_MEMORY_SIZE (1 << 20) diff --git a/src/plugins/vxlan/vxlan.h b/src/plugins/vxlan/vxlan.h index 72d82e79cf5..ccddedeb279 100644 --- a/src/plugins/vxlan/vxlan.h +++ b/src/plugins/vxlan/vxlan.h @@ -33,7 +33,6 @@ #include <vnet/dpo/dpo.h> #include <vnet/adj/adj_types.h> -/* *INDENT-OFF* */ typedef CLIB_PACKED (struct { ip4_header_t ip4; /* 20 bytes */ udp_header_t udp; /* 8 bytes */ @@ -45,7 +44,6 @@ typedef CLIB_PACKED (struct { udp_header_t udp; /* 8 bytes */ vxlan_header_t vxlan; /* 8 bytes */ }) ip6_vxlan_header_t; -/* *INDENT-ON* */ /* * Key fields: remote ip, vni on incoming VXLAN packet |