FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
memif_conn_args_t Struct Reference

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
 
uint8_t log2_ring_size
 
uint8_t is_master
 
uint32_t interface_id
 
uint8_t interface_name [32]
 
memif_interface_mode_t mode:8
 

Detailed Description

Memif connection arguments.

Parameters
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
mode- 0 == ethernet, 1 == ip , 2 == punt/inject

Definition at line 253 of file libmemif.h.

Field Documentation

uint16_t memif_conn_args_t::buffer_size

default = 2048

Definition at line 260 of file libmemif.h.

uint32_t memif_conn_args_t::interface_id

Definition at line 264 of file libmemif.h.

uint8_t memif_conn_args_t::interface_name[32]

Definition at line 265 of file libmemif.h.

uint8_t memif_conn_args_t::is_master

Definition at line 262 of file libmemif.h.

uint8_t memif_conn_args_t::log2_ring_size

default = 10 (1024)

Definition at line 261 of file libmemif.h.

memif_interface_mode_t memif_conn_args_t::mode

Definition at line 266 of file libmemif.h.

uint8_t memif_conn_args_t::num_m2s_rings

default = 1

Definition at line 259 of file libmemif.h.

uint8_t memif_conn_args_t::num_s2m_rings

default = 1

Definition at line 258 of file libmemif.h.

uint8_t memif_conn_args_t::secret[24]

optional (interface authentication)

Definition at line 256 of file libmemif.h.

uint8_t* memif_conn_args_t::socket_filename

default = /run/vpp/memif.sock

Definition at line 255 of file libmemif.h.


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