|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
15 #ifndef included_clib_graph_h
16 #define included_clib_graph_h
83 _vec_len (d->
links) = n_links;
format_function_t * format_node
#define hash_set(h, key, value)
#define hash_unset(h, key)
static graph_link_t * graph_dir_get_link_to_node(graph_dir_t *d, u32 node_index)
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.
#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)
Fixed length block allocator. Pools are built from clib vectors and bitmaps. Use pools when repeatedl...
static void graph_set_bidirectional_link(graph_t *g, u32 src, u32 dst, u32 distance)
unformat_function_t unformat_graph
void graph_del_link(graph_t *g, u32 src, u32 dst)
static void graph_dir_del_link(graph_dir_t *d, u32 node_index)
#define vec_free(V)
Free vector's memory (no header).
format_function_t format_graph
u32 graph_set_link(graph_t *g, u32 src, u32 dst, u32 distance)
uword graph_del_node(graph_t *g, u32 src)
uword * link_index_by_node_index
format_function_t format_graph_node