FD.io VPP  v21.06-3-gbb25fbf28
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 foreach_tapv2_flags
 

Enumerations

enum  tap_flag_t { foreach_tapv2_flags }
 

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 packet_coalesce)
 
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)
 
int tap_set_carrier (u32 hw_if_index, u32 carrier_up)
 
int tap_set_speed (u32 hw_if_index, u32 speed)
 

Macro Definition Documentation

◆ foreach_tapv2_flags

#define foreach_tapv2_flags
Value:
_ (GSO, 0) \
_ (CSUM_OFFLOAD, 1) \
_ (PERSIST, 2) \
_ (ATTACH, 3) \
_ (TUN, 4) \
_ (GRO_COALESCE, 5) \
_ (PACKED, 6) \
_ (IN_ORDER, 7)

Definition at line 25 of file tap.h.

◆ MIN

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

Definition at line 22 of file tap.h.

Enumeration Type Documentation

◆ tap_flag_t

enum tap_flag_t
Enumerator
foreach_tapv2_flags 

Definition at line 35 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 137 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 813 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 781 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 921 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,
int  packet_coalesce 
)

Definition at line 864 of file tap.c.

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

◆ tap_set_carrier()

int tap_set_carrier ( u32  hw_if_index,
u32  carrier_up 
)

Definition at line 990 of file tap.c.

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

◆ tap_set_speed()

int tap_set_speed ( u32  hw_if_index,
u32  speed 
)

Definition at line 1038 of file tap.c.

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