FD.io VPP  v20.01-48-g3e0dafb74
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_
 representation of a pipe interface More...
 

Typedefs

typedef struct pipe_t_ pipe_t
 representation 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

◆ pipe_cb_fn_t

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.

◆ pipe_t

typedef struct pipe_t_ pipe_t

representation of a pipe interface

Function Documentation

◆ pipe_get()

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:

◆ pipe_walk()

void pipe_walk ( pipe_cb_fn_t  fn,
void *  ctx 
)

Walk all the of pipe interfaces.

Definition at line 649 of file pipe.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vnet_create_pipe_interface()

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 531 of file pipe.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vnet_delete_pipe_interface()

int vnet_delete_pipe_interface ( u32  parent_sw_if_index)

Definition at line 708 of file pipe.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: