FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
tap.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tap_create_if_args_t
 
struct  tap_interface_details_t
 TAP interface details struct. More...
 
struct  tap_main_t
 

Macros

#define MIN(x, y)   (((x)<(y))?(x):(y))
 
#define TAP_FLAG_GSO   (1 << 0)
 
#define TAP_FLAG_CSUM_OFFLOAD   (1 << 1)
 

Functions

void tap_create_if (vlib_main_t *vm, tap_create_if_args_t *args)
 
int tap_delete_if (vlib_main_t *vm, u32 sw_if_index)
 
int tap_gso_enable_disable (vlib_main_t *vm, u32 sw_if_index, int enable_disable)
 
int tap_csum_offload_enable_disable (vlib_main_t *vm, u32 sw_if_index, int enable_disable)
 
int tap_dump_ifs (tap_interface_details_t **out_tapids)
 

Macro Definition Documentation

◆ MIN

#define MIN (   x,
 
)    (((x)<(y))?(x):(y))

Definition at line 22 of file tap.h.

◆ TAP_FLAG_CSUM_OFFLOAD

#define TAP_FLAG_CSUM_OFFLOAD   (1 << 1)

Definition at line 35 of file tap.h.

◆ TAP_FLAG_GSO

#define TAP_FLAG_GSO   (1 << 0)

Definition at line 34 of file tap.h.

Function Documentation

◆ tap_create_if()

void tap_create_if ( vlib_main_t vm,
tap_create_if_args_t args 
)

Definition at line 122 of file tap.c.

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

◆ tap_csum_offload_enable_disable()

int tap_csum_offload_enable_disable ( vlib_main_t vm,
u32  sw_if_index,
int  enable_disable 
)

Definition at line 668 of file tap.c.

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

◆ tap_delete_if()

int tap_delete_if ( vlib_main_t vm,
u32  sw_if_index 
)

Definition at line 636 of file tap.c.

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

◆ tap_dump_ifs()

int tap_dump_ifs ( tap_interface_details_t **  out_tapids)

Definition at line 773 of file tap.c.

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

◆ tap_gso_enable_disable()

int tap_gso_enable_disable ( vlib_main_t vm,
u32  sw_if_index,
int  enable_disable 
)

Definition at line 724 of file tap.c.

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