FD.io VPP
v18.01.2-1-g9b554f3
Vector Packet Processing
|
Memif connection arguments. More...
Data Fields | |
uint8_t * | socket_filename |
uint8_t | secret [24] |
uint8_t | num_s2m_rings |
uint8_t | num_m2s_rings |
uint16_t | buffer_size |
memif_log2_ring_size_t | log2_ring_size |
uint8_t | is_master |
memif_interface_id_t | interface_id |
uint8_t | interface_name [32] |
uint8_t | instance_name [32] |
memif_interface_mode_t | mode:8 |
Memif connection arguments.
socket_filename | - socket filename |
secret | - otional parameter used as interface autenthication |
num_s2m_rings | - number of slave to master rings |
num_m2s_rings | - number of master to slave rings |
buffer_size | - size of buffer in shared memory |
log2_ring_size | - logarithm base 2 of ring size |
is_master | - 0 == master, 1 == slave |
interface_id | - id used to identify peer connection |
interface_name | - interface name |
instance_name | - application name |
mode | - 0 == ethernet, 1 == ip , 2 == punt/inject |
Definition at line 159 of file libmemif.h.
uint16_t memif_conn_args_t::buffer_size |
default = 2048
Definition at line 166 of file libmemif.h.
uint8_t memif_conn_args_t::instance_name[32] |
Definition at line 172 of file libmemif.h.
memif_interface_id_t memif_conn_args_t::interface_id |
Definition at line 170 of file libmemif.h.
uint8_t memif_conn_args_t::interface_name[32] |
Definition at line 171 of file libmemif.h.
uint8_t memif_conn_args_t::is_master |
Definition at line 168 of file libmemif.h.
memif_log2_ring_size_t memif_conn_args_t::log2_ring_size |
default = 10 (1024)
Definition at line 167 of file libmemif.h.
memif_interface_mode_t memif_conn_args_t::mode |
Definition at line 173 of file libmemif.h.
uint8_t memif_conn_args_t::num_m2s_rings |
default = 1
Definition at line 165 of file libmemif.h.
uint8_t memif_conn_args_t::num_s2m_rings |
default = 1
Definition at line 164 of file libmemif.h.
uint8_t memif_conn_args_t::secret[24] |
optional (interface authentication)
Definition at line 162 of file libmemif.h.
uint8_t* memif_conn_args_t::socket_filename |
default = /run/vpp/memif.sock
Definition at line 161 of file libmemif.h.