FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
svs.h File Reference
+ Include dependency graph for svs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SVS_PLUGIN_VERSION_MAJOR   1
 Source VRF Selection matches against a packet's source address to set the VRF in which the subsequnet destination IP address lookup is done. More...
 
#define SVS_PLUGIN_VERSION_MINOR   0
 

Typedefs

typedef walk_rc_t(* svs_walk_fn_t) (fib_protocol_t fproto, u32 table_id, u32 sw_if_index, void *ctx)
 

Functions

int svs_table_add (fib_protocol_t fproto, u32 table_id)
 
int svs_table_delete (fib_protocol_t fproto, u32 table_id)
 
int svs_route_add (u32 table_id, const fib_prefix_t *pfx, u32 source_table_id)
 
int svs_route_delete (u32 table_id, const fib_prefix_t *pfx)
 
int svs_enable (fib_protocol_t fproto, u32 table_id, u32 sw_if_index)
 
int svs_disable (fib_protocol_t fproto, u32 table_id, u32 sw_if_index)
 
void svs_walk (svs_walk_fn_t fn, void *ctx)
 

Macro Definition Documentation

#define SVS_PLUGIN_VERSION_MAJOR   1

Source VRF Selection matches against a packet's source address to set the VRF in which the subsequnet destination IP address lookup is done.

If no match for the source address is found, then the RX interface's table/VRF is used.

Definition at line 27 of file svs.h.

#define SVS_PLUGIN_VERSION_MINOR   0

Definition at line 28 of file svs.h.

Typedef Documentation

typedef walk_rc_t(* svs_walk_fn_t) (fib_protocol_t fproto, u32 table_id, u32 sw_if_index, void *ctx)

Definition at line 40 of file svs.h.

Function Documentation

int svs_disable ( fib_protocol_t  fproto,
u32  table_id,
u32  sw_if_index 
)

Definition at line 193 of file svs.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int svs_enable ( fib_protocol_t  fproto,
u32  table_id,
u32  sw_if_index 
)

Definition at line 116 of file svs.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int svs_route_add ( u32  table_id,
const fib_prefix_t pfx,
u32  source_table_id 
)

Definition at line 80 of file svs.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int svs_route_delete ( u32  table_id,
const fib_prefix_t pfx 
)

Definition at line 101 of file svs.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int svs_table_add ( fib_protocol_t  fproto,
u32  table_id 
)

Definition at line 30 of file svs.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int svs_table_delete ( fib_protocol_t  fproto,
u32  table_id 
)

Definition at line 38 of file svs.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void svs_walk ( svs_walk_fn_t  fn,
void *  ctx 
)

Definition at line 218 of file svs.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: