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
@ -178,12 +178,10 @@ VLIB_API_INIT_FUNCTION (lldp_api_hookup);
|
||||
#include <vlib/unix/plugin.h>
|
||||
#include <vpp/app/version.h>
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
VLIB_PLUGIN_REGISTER () = {
|
||||
.version = VPP_BUILD_VER,
|
||||
.description = "Link Layer Discovery Protocol (LLDP)",
|
||||
};
|
||||
/* *INDENT-ON* */
|
||||
|
||||
/*
|
||||
* fd.io coding-style-patch-verification: ON
|
||||
|
@ -298,7 +298,6 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
VLIB_CLI_COMMAND(set_interface_lldp_cmd, static) = {
|
||||
.path = "set interface lldp",
|
||||
.short_help = "set interface lldp <interface> | sw_if_index <idx>"
|
||||
@ -313,7 +312,6 @@ VLIB_CLI_COMMAND(set_lldp_cmd, static) = {
|
||||
"[tx-interval <value>]",
|
||||
.function = lldp_cfg_cmd,
|
||||
};
|
||||
/* *INDENT-ON* */
|
||||
|
||||
static const char *
|
||||
lldp_chassis_id_subtype_str (lldp_chassis_id_subtype_t t)
|
||||
@ -580,7 +578,6 @@ format_lldp_intfs_detail (u8 * s, vlib_main_t * vm, const lldp_main_t * lm)
|
||||
s = format (s, "\nLLDP-enabled interface table:\n");
|
||||
f64 now = vlib_time_now (vm);
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
pool_foreach (
|
||||
n, lm->intfs) {
|
||||
hw = vnet_get_hw_interface(vnm, n->hw_if_index);
|
||||
@ -640,7 +637,6 @@ format_lldp_intfs_detail (u8 * s, vlib_main_t * vm, const lldp_main_t * lm)
|
||||
now, format_time_ago, n->last_heard, now);
|
||||
}
|
||||
}
|
||||
/* *INDENT-ON* */
|
||||
return s;
|
||||
}
|
||||
|
||||
@ -663,7 +659,6 @@ format_lldp_intfs (u8 * s, va_list * va)
|
||||
"Peer chassis ID", "Remote port ID", "Last heard", "Last sent",
|
||||
"Status");
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
pool_foreach (
|
||||
n, lm->intfs) {
|
||||
const vnet_hw_interface_t *hw =
|
||||
@ -689,7 +684,6 @@ format_lldp_intfs (u8 * s, va_list * va)
|
||||
format_time_ago, n->last_sent, now, "inactive");
|
||||
}
|
||||
}
|
||||
/* *INDENT-ON* */
|
||||
return s;
|
||||
}
|
||||
|
||||
@ -710,13 +704,11 @@ show_lldp (vlib_main_t * vm, unformat_input_t * input,
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
VLIB_CLI_COMMAND(show_lldp_command, static) = {
|
||||
.path = "show lldp",
|
||||
.short_help = "show lldp [detail]",
|
||||
.function = show_lldp,
|
||||
};
|
||||
/* *INDENT-ON* */
|
||||
|
||||
/*
|
||||
* packet trace format function, very similar to
|
||||
|
@ -102,7 +102,6 @@ lldp_node_fn (vlib_main_t * vm, vlib_node_runtime_t * node,
|
||||
/*
|
||||
* lldp input graph node declaration
|
||||
*/
|
||||
/* *INDENT-OFF* */
|
||||
VLIB_REGISTER_NODE(lldp_input_node, static) = {
|
||||
.function = lldp_node_fn,
|
||||
.name = "lldp-input",
|
||||
@ -120,7 +119,6 @@ VLIB_REGISTER_NODE(lldp_input_node, static) = {
|
||||
[LLDP_INPUT_NEXT_NORMAL] = "error-drop",
|
||||
},
|
||||
};
|
||||
/* *INDENT-ON* */
|
||||
|
||||
/*
|
||||
* lldp process node function
|
||||
@ -230,13 +228,11 @@ lldp_process (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f)
|
||||
/*
|
||||
* lldp process node declaration
|
||||
*/
|
||||
/* *INDENT-OFF* */
|
||||
VLIB_REGISTER_NODE(lldp_process_node, static) = {
|
||||
.function = lldp_process,
|
||||
.type = VLIB_NODE_TYPE_PROCESS,
|
||||
.name = "lldp-process",
|
||||
};
|
||||
/* *INDENT-ON* */
|
||||
|
||||
void
|
||||
lldp_schedule_intf (lldp_main_t * lm, lldp_intf_t * n)
|
||||
|
@ -56,12 +56,10 @@ struct lldp_tlv_head
|
||||
u8 byte2; /* contains the lower bits of length */
|
||||
};
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
typedef CLIB_PACKED (struct {
|
||||
struct lldp_tlv_head head;
|
||||
u8 v[0];
|
||||
}) lldp_tlv_t;
|
||||
/* *INDENT-ON* */
|
||||
|
||||
lldp_tlv_code_t lldp_tlv_get_code (const lldp_tlv_t * tlv);
|
||||
void lldp_tlv_set_code (lldp_tlv_t * tlv, lldp_tlv_code_t code);
|
||||
@ -89,13 +87,11 @@ typedef enum
|
||||
#undef F
|
||||
} lldp_chassis_id_subtype_t;
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
typedef CLIB_PACKED (struct {
|
||||
struct lldp_tlv_head head;
|
||||
u8 subtype;
|
||||
u8 id[0];
|
||||
}) lldp_chassis_id_tlv_t;
|
||||
/* *INDENT-ON* */
|
||||
|
||||
#define foreach_port_id_subtype(F) \
|
||||
F (0, reserved, "Reserved") \
|
||||
@ -118,7 +114,6 @@ typedef enum
|
||||
#undef F
|
||||
} lldp_port_id_subtype_t;
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
typedef CLIB_PACKED (struct {
|
||||
struct lldp_tlv_head head;
|
||||
u8 subtype;
|
||||
@ -129,7 +124,6 @@ typedef CLIB_PACKED (struct {
|
||||
struct lldp_tlv_head head;
|
||||
u16 ttl;
|
||||
}) lldp_ttl_tlv_t;
|
||||
/* *INDENT-ON* */
|
||||
|
||||
#endif /* __included_lldp_protocol_h__ */
|
||||
|
||||
|
Reference in New Issue
Block a user