FD.io VPP  v18.11-rc0-18-g2a3fb1a
Vector Packet Processing
pipe.h File Reference
+ Include dependency graph for pipe.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pipe_t_
 represenation of a pipe interface More...
 

Typedefs

typedef struct pipe_t_ pipe_t
 represenation of a pipe interface More...
 
typedef walk_rc_t(* pipe_cb_fn_t) (u32 parent_sw_if_index, u32 pipe_sw_if_index[2], u32 instance, void *ctx)
 Call back function when walking all the pipes. More...
 

Functions

int vnet_create_pipe_interface (u8 is_specified, u32 user_instance, u32 *parent_sw_if_index, u32 pipe_sw_if_index[2])
 Create a new pipe interface. More...
 
int vnet_delete_pipe_interface (u32 parent_sw_if_index)
 
pipe_tpipe_get (u32 sw_if_index)
 Get the pipe instnace based on one end. More...
 
void pipe_walk (pipe_cb_fn_t fn, void *ctx)
 Walk all the of pipe interfaces. More...
 

Typedef Documentation

typedef walk_rc_t(* pipe_cb_fn_t) (u32 parent_sw_if_index, u32 pipe_sw_if_index[2], u32 instance, void *ctx)

Call back function when walking all the pipes.

Definition at line 55 of file pipe.h.

typedef struct pipe_t_ pipe_t

represenation of a pipe interface

Function Documentation

pipe_t* pipe_get ( u32  sw_if_index)

Get the pipe instnace based on one end.

Definition at line 95 of file pipe.c.

+ Here is the caller graph for this function:

void pipe_walk ( pipe_cb_fn_t  fn,
void *  ctx 
)

Walk all the of pipe interfaces.

Definition at line 658 of file pipe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_create_pipe_interface ( u8  is_specified,
u32  user_instance,
u32 parent_sw_if_index,
u32  pipe_sw_if_index[2] 
)

Create a new pipe interface.

Parameters
is_specifiedHas the user speficied a desired instance number
user_instanceThe user's desired instnace
parent_sw_indexOUT the created parent interface
pipe_sw_if_indexOUT the ends of the pipe

Definition at line 540 of file pipe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_delete_pipe_interface ( u32  parent_sw_if_index)

Definition at line 717 of file pipe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: