FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
socket.c File Reference
+ Include dependency graph for socket.c:

Go to the source code of this file.

Functions

void memif_socket_close (clib_socket_t **s)
 
static u8memif_str2vec (uint8_t *str, int len)
 
static void memif_msg_enq_ack (memif_if_t *mif)
 
static clib_error_tmemif_msg_enq_hello (clib_socket_t *sock)
 
static void memif_msg_enq_init (memif_if_t *mif)
 
static void memif_msg_enq_add_region (memif_if_t *mif, u8 region)
 
static void memif_msg_enq_add_ring (memif_if_t *mif, u8 index, u8 direction)
 
static void memif_msg_enq_connect (memif_if_t *mif)
 
static void memif_msg_enq_connected (memif_if_t *mif)
 
clib_error_tmemif_msg_send_disconnect (memif_if_t *mif, clib_error_t *err)
 
static clib_error_tmemif_msg_receive_hello (memif_if_t *mif, memif_msg_t *msg)
 
static clib_error_tmemif_msg_receive_init (memif_if_t **mifp, memif_msg_t *msg, clib_socket_t *sock, uword socket_file_index)
 
static clib_error_tmemif_msg_receive_add_region (memif_if_t *mif, memif_msg_t *msg, int fd)
 
static clib_error_tmemif_msg_receive_add_ring (memif_if_t *mif, memif_msg_t *msg, int fd)
 
static clib_error_tmemif_msg_receive_connect (memif_if_t *mif, memif_msg_t *msg)
 
static clib_error_tmemif_msg_receive_connected (memif_if_t *mif, memif_msg_t *msg)
 
static clib_error_tmemif_msg_receive_disconnect (memif_if_t *mif, memif_msg_t *msg)
 
static clib_error_tmemif_msg_receive (memif_if_t **mifp, clib_socket_t *sock, clib_file_t *uf)
 
clib_error_tmemif_master_conn_fd_read_ready (clib_file_t *uf)
 
clib_error_tmemif_slave_conn_fd_read_ready (clib_file_t *uf)
 
static clib_error_tmemif_conn_fd_write_ready (clib_file_t *uf, memif_if_t *mif)
 
clib_error_tmemif_master_conn_fd_write_ready (clib_file_t *uf)
 
clib_error_tmemif_slave_conn_fd_write_ready (clib_file_t *uf)
 
clib_error_tmemif_slave_conn_fd_error (clib_file_t *uf)
 
clib_error_tmemif_master_conn_fd_error (clib_file_t *uf)
 
clib_error_tmemif_conn_fd_accept_ready (clib_file_t *uf)
 

Function Documentation

clib_error_t* memif_conn_fd_accept_ready ( clib_file_t uf)

Definition at line 643 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* memif_conn_fd_write_ready ( clib_file_t uf,
memif_if_t mif 
)
static

Definition at line 555 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* memif_master_conn_fd_error ( clib_file_t uf)

Definition at line 605 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* memif_master_conn_fd_read_ready ( clib_file_t uf)

Definition at line 501 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* memif_master_conn_fd_write_ready ( clib_file_t uf)

Definition at line 566 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void memif_msg_enq_ack ( memif_if_t mif)
static

Definition at line 71 of file socket.c.

+ Here is the caller graph for this function:

static void memif_msg_enq_add_region ( memif_if_t mif,
u8  region 
)
static

Definition at line 121 of file socket.c.

+ Here is the caller graph for this function:

static void memif_msg_enq_add_ring ( memif_if_t mif,
u8  index,
u8  direction 
)
static

Definition at line 134 of file socket.c.

+ Here is the caller graph for this function:

static void memif_msg_enq_connect ( memif_if_t mif)
static

Definition at line 160 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void memif_msg_enq_connected ( memif_if_t mif)
static

Definition at line 175 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* memif_msg_enq_hello ( clib_socket_t sock)
static

Definition at line 81 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void memif_msg_enq_init ( memif_if_t mif)
static

Definition at line 100 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* memif_msg_receive ( memif_if_t **  mifp,
clib_socket_t sock,
clib_file_t uf 
)
static

Definition at line 409 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* memif_msg_receive_add_region ( memif_if_t mif,
memif_msg_t msg,
int  fd 
)
static

Definition at line 300 of file socket.c.

+ Here is the caller graph for this function:

static clib_error_t* memif_msg_receive_add_ring ( memif_if_t mif,
memif_msg_t msg,
int  fd 
)
static

Definition at line 322 of file socket.c.

+ Here is the caller graph for this function:

static clib_error_t* memif_msg_receive_connect ( memif_if_t mif,
memif_msg_t msg 
)
static

Definition at line 373 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* memif_msg_receive_connected ( memif_if_t mif,
memif_msg_t msg 
)
static

Definition at line 387 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* memif_msg_receive_disconnect ( memif_if_t mif,
memif_msg_t msg 
)
static

Definition at line 400 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* memif_msg_receive_hello ( memif_if_t mif,
memif_msg_t msg 
)
static

Definition at line 203 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* memif_msg_receive_init ( memif_if_t **  mifp,
memif_msg_t msg,
clib_socket_t sock,
uword  socket_file_index 
)
static

Definition at line 225 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* memif_msg_send_disconnect ( memif_if_t mif,
clib_error_t err 
)

Definition at line 190 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* memif_slave_conn_fd_error ( clib_file_t uf)

Definition at line 591 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* memif_slave_conn_fd_read_ready ( clib_file_t uf)

Definition at line 540 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* memif_slave_conn_fd_write_ready ( clib_file_t uf)

Definition at line 583 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void memif_socket_close ( clib_socket_t **  s)

Definition at line 43 of file socket.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* memif_str2vec ( uint8_t *  str,
int  len 
)
static

Definition at line 51 of file socket.c.

+ Here is the caller graph for this function: