FD.io VPP  v17.01-9-ge7dcee4
Vector Packet Processing
tapcli_main_t Struct Reference

TAPCLI main state struct. More...

+ Collaboration diagram for tapcli_main_t:

Data Fields

struct iovec * iovecs
 Vector of iovecs for readv/writev calls. More...
 
u32rx_buffers
 Vector of VLIB rx buffers to use. More...
 
u8 ether_dst_mac [6]
 tap device destination MAC address. More...
 
u32 mtu_bytes
 Interface MTU in bytes and # of default sized buffers. More...
 
u32 mtu_buffers
 
tapcli_interface_ttapcli_interfaces
 Vector of tap interfaces. More...
 
u32tapcli_inactive_interfaces
 Vector of deleted tap interfaces. More...
 
uwordpending_read_bitmap
 Bitmap of tap interfaces with pending reads. More...
 
uwordtapcli_interface_index_by_sw_if_index
 Hash table to find tapcli interface given hw_if_index. More...
 
uwordtapcli_interface_index_by_unix_fd
 Hash table to find tapcli interface given unix fd. More...
 
u32show_dev_instance_by_real_dev_instance
 renumbering table More...
 
int is_disabled
 1 => disable CLI More...
 
vlib_main_tvlib_main
 convenience - vlib_main_t More...
 
vnet_main_tvnet_main
 convenience - vnet_main_t More...
 
unix_main_tunix_main
 convenience - unix_main_t More...
 

Detailed Description

TAPCLI main state struct.

Definition at line 100 of file tapcli.c.

Field Documentation

u8 tapcli_main_t::ether_dst_mac[6]

tap device destination MAC address.

Required, or Linux drops pkts

Definition at line 109 of file tapcli.c.

struct iovec* tapcli_main_t::iovecs

Vector of iovecs for readv/writev calls.

Definition at line 102 of file tapcli.c.

int tapcli_main_t::is_disabled

1 => disable CLI

Definition at line 133 of file tapcli.c.

u32 tapcli_main_t::mtu_buffers

Definition at line 112 of file tapcli.c.

u32 tapcli_main_t::mtu_bytes

Interface MTU in bytes and # of default sized buffers.

Definition at line 112 of file tapcli.c.

uword* tapcli_main_t::pending_read_bitmap

Bitmap of tap interfaces with pending reads.

Definition at line 121 of file tapcli.c.

u32* tapcli_main_t::rx_buffers

Vector of VLIB rx buffers to use.

We allocate them in blocks of VLIB_FRAME_SIZE (256).

Definition at line 106 of file tapcli.c.

u32* tapcli_main_t::show_dev_instance_by_real_dev_instance

renumbering table

Definition at line 130 of file tapcli.c.

u32* tapcli_main_t::tapcli_inactive_interfaces

Vector of deleted tap interfaces.

Definition at line 118 of file tapcli.c.

uword* tapcli_main_t::tapcli_interface_index_by_sw_if_index

Hash table to find tapcli interface given hw_if_index.

Definition at line 124 of file tapcli.c.

uword* tapcli_main_t::tapcli_interface_index_by_unix_fd

Hash table to find tapcli interface given unix fd.

Definition at line 127 of file tapcli.c.

tapcli_interface_t* tapcli_main_t::tapcli_interfaces

Vector of tap interfaces.

Definition at line 115 of file tapcli.c.

unix_main_t* tapcli_main_t::unix_main

convenience - unix_main_t

Definition at line 140 of file tapcli.c.

vlib_main_t* tapcli_main_t::vlib_main

convenience - vlib_main_t

Definition at line 136 of file tapcli.c.

vnet_main_t* tapcli_main_t::vnet_main

convenience - vnet_main_t

Definition at line 138 of file tapcli.c.


The documentation for this struct was generated from the following file: