|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
49 uword li_next, li_prev;
124 if (!
unformat (input,
"%d%d%d", &l->src, &l->dst, &l->distance))
127 _vec_len (links) -= 1;
167 s =
format (s,
"%U (%d), ",
format_function_t * format_node
#define pool_validate_index(v, i)
u32 graph_set_link(graph_t *g, u32 src, u32 dst, u32 distance)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
#define pool_put(P, E)
Free an object E in pool P.
u8 * format_graph(u8 *s, va_list *args)
#define pool_is_free_index(P, I)
Use free bitmap to query whether given index is free.
static graph_link_t * graph_dir_get_link_to_node(graph_dir_t *d, u32 node_index)
#define pool_foreach(VAR, POOL)
Iterate through pool.
static void graph_dir_free(graph_dir_t *d)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
#define vec_add2(V, P, N)
Add N elements to end of vector V, return pointer to new elements in P.
void graph_del_link(graph_t *g, u32 src, u32 dst)
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
static uword graph_dir_add_link(graph_dir_t *d, u32 node_index, u32 distance)
static void graph_dir_del_link(graph_dir_t *d, u32 node_index)
#define vec_free(V)
Free vector's memory (no header).
uword graph_del_node(graph_t *g, u32 src)
description fragment has unexpected format
#define vec_foreach(var, vec)
Vector iterator.
static uword pool_elts(void *v)
Number of active elements in a pool.
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
u8 * format_graph_node(u8 *s, va_list *args)
uword unformat_graph(unformat_input_t *input, va_list *args)