|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
18 #include <sys/socket.h>
26 #include <vpp/app/version.h>
30 #include <tracedump/graph.api_enum.h>
31 #include <tracedump/graph.api_types.h>
42 for (
i = 0;
i < n_arcs; ++
i)
82 else if (
unformat (input,
"want_arcs"))
85 else if (
unformat (input,
"trace_supported"))
95 else if (
unformat (input,
"handoff"))
97 else if (
unformat (input,
"no_free"))
99 else if (
unformat (input,
"polling"))
101 else if (
unformat (input,
"interrupt"))
137 .path =
"show graph",
138 .short_help =
"show graph [node <index>|<name>] [want_arcs] [input|trace_supported] [drop] [output] [punt] [handoff] [no_free] [polling] [interrupt]",
static clib_error_t * graph_node_show_cmd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define clib_error_return(e, args...)
static vlib_cli_command_t graph_node_show_command
(constructor) VLIB_CLI_COMMAND (graph_node_show_command)
vlib_node_main_t node_main
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
@ NODE_FLAG_TRACE_SUPPORTED
#define vec_cmp(v1, v2)
Compare two vectors (only applicable to vectors of signed numbers).
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
#define vec_dup(V)
Return copy of vector (no header, no alignment)
static void graph_node_print(vlib_main_t *vm, vlib_node_t *n, bool want_arcs)
static vlib_node_t * vlib_get_node(vlib_main_t *vm, u32 i)
Get vlib node by index.
@ NODE_FLAG_SWITCH_FROM_POLLING_TO_INTERRUPT_MODE
#define VLIB_CLI_COMMAND(x,...)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
#define vec_free(V)
Free vector's memory (no header).
vlib_node_t * vlib_get_node_by_name(vlib_main_t *vm, u8 *name)
static int node_cmp(void *a1, void *a2)
#define vec_sort_with_function(vec, f)
Sort a vector using the supplied element comparison function.
@ NODE_FLAG_FRAME_NO_FREE_AFTER_DISPATCH
@ NODE_FLAG_SWITCH_FROM_INTERRUPT_TO_POLLING_MODE
vl_api_wireguard_peer_flags_t flags