FD.io VPP  v19.04.4-rc0-5-ge88582fac
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

◆ memif_conn_fd_accept_ready()

clib_error_t* memif_conn_fd_accept_ready ( clib_file_t uf)

Definition at line 649 of file socket.c.

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

◆ memif_conn_fd_write_ready()

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

Definition at line 560 of file socket.c.

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

◆ memif_master_conn_fd_error()

clib_error_t* memif_master_conn_fd_error ( clib_file_t uf)

Definition at line 610 of file socket.c.

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

◆ memif_master_conn_fd_read_ready()

clib_error_t* memif_master_conn_fd_read_ready ( clib_file_t uf)

Definition at line 506 of file socket.c.

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

◆ memif_master_conn_fd_write_ready()

clib_error_t* memif_master_conn_fd_write_ready ( clib_file_t uf)

Definition at line 571 of file socket.c.

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

◆ memif_msg_enq_ack()

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:

◆ memif_msg_enq_add_region()

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:

◆ memif_msg_enq_add_ring()

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:

◆ memif_msg_enq_connect()

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:

◆ memif_msg_enq_connected()

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:

◆ memif_msg_enq_hello()

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:

◆ memif_msg_enq_init()

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:

◆ memif_msg_receive()

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:

◆ memif_msg_receive_add_region()

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:

◆ memif_msg_receive_add_ring()

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 call graph for this function:
+ Here is the caller graph for this function:

◆ memif_msg_receive_connect()

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:

◆ memif_msg_receive_connected()

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:

◆ memif_msg_receive_disconnect()

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:

◆ memif_msg_receive_hello()

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:

◆ memif_msg_receive_init()

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:

◆ memif_msg_send_disconnect()

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:

◆ memif_slave_conn_fd_error()

clib_error_t* memif_slave_conn_fd_error ( clib_file_t uf)

Definition at line 596 of file socket.c.

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

◆ memif_slave_conn_fd_read_ready()

clib_error_t* memif_slave_conn_fd_read_ready ( clib_file_t uf)

Definition at line 545 of file socket.c.

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

◆ memif_slave_conn_fd_write_ready()

clib_error_t* memif_slave_conn_fd_write_ready ( clib_file_t uf)

Definition at line 588 of file socket.c.

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

◆ memif_socket_close()

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:

◆ memif_str2vec()

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: