FD.io VPP  v16.06
Vector Packet Processing
graph.h File Reference
+ Include dependency graph for graph.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  graph_link_t
 
struct  graph_dir_t
 
struct  graph_node_t
 
struct  graph_t
 

Functions

always_inline void graph_dir_free (graph_dir_t *d)
 
always_inline graph_link_tgraph_dir_get_link_to_node (graph_dir_t *d, u32 node_index)
 
always_inline uword graph_dir_add_link (graph_dir_t *d, u32 node_index, u32 distance)
 
always_inline void graph_dir_del_link (graph_dir_t *d, u32 node_index)
 
u32 graph_set_link (graph_t *g, u32 src, u32 dst, u32 distance)
 
always_inline void graph_set_bidirectional_link (graph_t *g, u32 src, u32 dst, u32 distance)
 
void graph_del_link (graph_t *g, u32 src, u32 dst)
 
uword graph_del_node (graph_t *g, u32 src)
 

Variables

unformat_function_t unformat_graph
 
format_function_t format_graph
 
format_function_t format_graph_node
 

Function Documentation

void graph_del_link ( graph_t g,
u32  src,
u32  dst 
)

Definition at line 65 of file graph.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword graph_del_node ( graph_t g,
u32  src 
)

Definition at line 77 of file graph.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

always_inline uword graph_dir_add_link ( graph_dir_t d,
u32  node_index,
u32  distance 
)

Definition at line 58 of file graph.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

always_inline void graph_dir_del_link ( graph_dir_t d,
u32  node_index 
)

Definition at line 70 of file graph.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

always_inline void graph_dir_free ( graph_dir_t d)

Definition at line 44 of file graph.h.

+ Here is the caller graph for this function:

always_inline graph_link_t* graph_dir_get_link_to_node ( graph_dir_t d,
u32  node_index 
)

Definition at line 51 of file graph.h.

+ Here is the caller graph for this function:

always_inline void graph_set_bidirectional_link ( graph_t g,
u32  src,
u32  dst,
u32  distance 
)

Definition at line 101 of file graph.h.

+ Here is the call graph for this function:

u32 graph_set_link ( graph_t g,
u32  src,
u32  dst,
u32  distance 
)

Definition at line 18 of file graph.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

format_function_t format_graph

Definition at line 111 of file graph.h.

format_function_t format_graph_node

Definition at line 112 of file graph.h.

unformat_function_t unformat_graph

Definition at line 110 of file graph.h.