FD.io VPP  v21.06-3-gbb25fbf28
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 void memif_msg_strlcpy (u8 *dest, u32 len, const u8 *src)
 
static void memif_msg_snprintf (u8 *dest, u32 len, const char *fmt,...)
 
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 657 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 568 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 618 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 514 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 579 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 133 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 146 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 172 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 185 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 100 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 116 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 417 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 308 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 330 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 381 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 395 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 408 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 211 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 233 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 198 of file socket.c.

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

◆ memif_msg_snprintf()

static void memif_msg_snprintf ( u8 dest,
u32  len,
const char *  fmt,
  ... 
)
static

Definition at line 89 of file socket.c.

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

◆ memif_msg_strlcpy()

static void memif_msg_strlcpy ( u8 dest,
u32  len,
const u8 src 
)
static

Definition at line 81 of file socket.c.

+ 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 604 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 553 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 596 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: