FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | echo_session_t |
union | session_connected_bundled_msg_ |
struct | echo_proto_cb_vft_ |
struct | teardown_stat_ |
struct | echo_stats_ |
struct | echo_main_t |
struct | echo_connect_args_ |
struct | echo_disconnect_args_ |
union | echo_rpc_args_t |
struct | echo_rpc_msg_t |
Macros | |
#define | TIMEOUT 10.0 |
#define | LOGGING_BATCH (100) |
#define | LOG_EVERY_N_IDLE_CYCLES (1e8) |
#define | ECHO_MQ_SEG_HANDLE ((u64) ~0 - 1) |
#define | foreach_echo_fail_code |
#define | CHECK_SAME(fail, expected, result, _fmt, _args...) |
#define | CHECK_DIFF(fail, expected, result, _fmt, _args...) |
#define | ECHO_FAIL(fail, _fmt, _args...) |
#define | ECHO_LOG(lvl, _fmt, _args...) |
#define | ECHO_REGISTER_PROTO(proto, vft) |
Typedefs | |
typedef enum echo_test_evt_ | echo_test_evt_t |
typedef union session_connected_bundled_msg_ | session_connected_bundled_msg_t |
typedef struct echo_proto_cb_vft_ | echo_proto_cb_vft_t |
typedef struct teardown_stat_ | teardown_stat_t |
typedef struct echo_stats_ | echo_stats_t |
typedef struct echo_connect_args_ | echo_connect_args_t |
typedef struct echo_disconnect_args_ | echo_disconnect_args_t |
typedef void(* | echo_rpc_t) (echo_main_t *em, echo_rpc_args_t *arg) |
Variables | |
char * | echo_fail_code_str [] |
echo_main_t | echo_main |
#define CHECK_DIFF | ( | fail, | |
expected, | |||
result, | |||
_fmt, | |||
_args... | |||
) |
Definition at line 107 of file vpp_echo_common.h.
#define CHECK_SAME | ( | fail, | |
expected, | |||
result, | |||
_fmt, | |||
_args... | |||
) |
Definition at line 100 of file vpp_echo_common.h.
#define ECHO_FAIL | ( | fail, | |
_fmt, | |||
_args... | |||
) |
Definition at line 114 of file vpp_echo_common.h.
#define ECHO_LOG | ( | lvl, | |
_fmt, | |||
_args... | |||
) |
Definition at line 129 of file vpp_echo_common.h.
#define ECHO_MQ_SEG_HANDLE ((u64) ~0 - 1) |
Definition at line 27 of file vpp_echo_common.h.
#define ECHO_REGISTER_PROTO | ( | proto, | |
vft | |||
) |
#define foreach_echo_fail_code |
Definition at line 29 of file vpp_echo_common.h.
#define LOG_EVERY_N_IDLE_CYCLES (1e8) |
Definition at line 26 of file vpp_echo_common.h.
#define LOGGING_BATCH (100) |
Definition at line 25 of file vpp_echo_common.h.
#define TIMEOUT 10.0 |
Definition at line 24 of file vpp_echo_common.h.
typedef struct echo_connect_args_ echo_connect_args_t |
typedef struct echo_disconnect_args_ echo_disconnect_args_t |
typedef struct echo_proto_cb_vft_ echo_proto_cb_vft_t |
typedef void(* echo_rpc_t) (echo_main_t *em, echo_rpc_args_t *arg) |
Definition at line 392 of file vpp_echo_common.h.
typedef struct echo_stats_ echo_stats_t |
typedef enum echo_test_evt_ echo_test_evt_t |
typedef struct teardown_stat_ teardown_stat_t |
enum connection_state_t |
Enumerator | |
---|---|
STATE_START | |
STATE_ATTACHED_NO_CERT | |
STATE_ATTACHED | |
STATE_LISTEN | |
STATE_READY | |
STATE_DATA_DONE | |
STATE_DISCONNECTED | |
STATE_CLEANED_CERT_KEY | |
STATE_DETACHED |
Definition at line 195 of file vpp_echo_common.h.
enum data_source_t |
Enumerator | |
---|---|
ECHO_NO_DATA_SOURCE | |
ECHO_TEST_DATA_SOURCE | |
ECHO_RX_DATA_SOURCE | |
ECHO_INVALID_DATA_SOURCE |
Definition at line 162 of file vpp_echo_common.h.
enum echo_close_f_t |
Enumerator | |
---|---|
ECHO_CLOSE_F_INVALID | |
ECHO_CLOSE_F_PASSIVE | |
ECHO_CLOSE_F_ACTIVE | |
ECHO_CLOSE_F_NONE |
Definition at line 170 of file vpp_echo_common.h.
enum echo_fail_t |
Enumerator | |
---|---|
foreach_echo_fail_code |
Definition at line 91 of file vpp_echo_common.h.
enum echo_test_evt_ |
Enumerator | |
---|---|
ECHO_EVT_START | |
ECHO_EVT_FIRST_QCONNECT | |
ECHO_EVT_LAST_QCONNECTED | |
ECHO_EVT_FIRST_SCONNECT | |
ECHO_EVT_LAST_SCONNECTED | |
ECHO_EVT_LAST_BYTE | |
ECHO_EVT_EXIT |
Definition at line 208 of file vpp_echo_common.h.
enum quic_session_state_t |
Enumerator | |
---|---|
ECHO_SESSION_STATE_INITIAL | |
ECHO_SESSION_STATE_READY | |
ECHO_SESSION_STATE_AWAIT_CLOSING | |
ECHO_SESSION_STATE_AWAIT_DATA | |
ECHO_SESSION_STATE_CLOSING | |
ECHO_SESSION_STATE_CLOSED |
Definition at line 185 of file vpp_echo_common.h.
enum quic_session_type_t |
Enumerator | |
---|---|
ECHO_SESSION_TYPE_QUIC | |
ECHO_SESSION_TYPE_STREAM | |
ECHO_SESSION_TYPE_LISTEN |
Definition at line 178 of file vpp_echo_common.h.
Enumerator | |
---|---|
RETURN_PACKETS_NOTEST | |
RETURN_PACKETS_LOG_WRONG | |
RETURN_PACKETS_ASSERT |
Definition at line 240 of file vpp_echo_common.h.
void echo_api_hookup | ( | echo_main_t * | em | ) |
int echo_attach_session | ( | uword | segment_handle, |
uword | rxf_offset, | ||
uword | mq_offset, | ||
uword | txf_offset, | ||
echo_session_t * | s | ||
) |
Definition at line 294 of file vpp_echo_bapi.c.
Definition at line 481 of file vpp_echo_common.c.
Definition at line 146 of file vpp_echo_common.c.
echo_session_t* echo_get_session_from_handle | ( | echo_main_t * | em, |
u64 | handle | ||
) |
Definition at line 573 of file vpp_echo_common.c.
void echo_notify_event | ( | echo_main_t * | em, |
echo_test_evt_t | e | ||
) |
Definition at line 604 of file vpp_echo_common.c.
svm_fifo_chunk_t* echo_segment_alloc_chunk | ( | uword | segment_handle, |
u32 | slice_index, | ||
u32 | size, | ||
uword * | offset | ||
) |
Definition at line 364 of file vpp_echo_bapi.c.
int echo_segment_attach | ( | u64 | segment_handle, |
char * | name, | ||
ssvm_segment_type_t | type, | ||
int | fd | ||
) |
Definition at line 228 of file vpp_echo_bapi.c.
int echo_segment_attach_mq | ( | uword | segment_handle, |
uword | mq_offset, | ||
u32 | mq_index, | ||
svm_msg_q_t ** | mq | ||
) |
Definition at line 338 of file vpp_echo_bapi.c.
void echo_segment_detach | ( | u64 | segment_handle | ) |
Definition at line 276 of file vpp_echo_bapi.c.
Definition at line 258 of file vpp_echo_bapi.c.
void echo_send_add_cert_key | ( | echo_main_t * | em | ) |
void echo_send_attach | ( | echo_main_t * | em | ) |
void echo_send_connect | ( | echo_main_t * | em, |
void * | args | ||
) |
Definition at line 171 of file vpp_echo_bapi.c.
void echo_send_del_cert_key | ( | echo_main_t * | em | ) |
void echo_send_detach | ( | echo_main_t * | em | ) |
void echo_send_disconnect_session | ( | echo_main_t * | em, |
void * | args | ||
) |
Definition at line 201 of file vpp_echo_bapi.c.
void echo_send_listen | ( | echo_main_t * | em, |
ip46_address_t * | ip | ||
) |
Definition at line 132 of file vpp_echo_bapi.c.
int echo_send_rpc | ( | echo_main_t * | em, |
void * | fp, | ||
echo_rpc_args_t * | args | ||
) |
Definition at line 548 of file vpp_echo_common.c.
void echo_send_unbind | ( | echo_main_t * | em, |
echo_session_t * | s | ||
) |
Definition at line 154 of file vpp_echo_bapi.c.
void echo_session_handle_add_del | ( | echo_main_t * | em, |
u64 | handle, | ||
u32 | sid | ||
) |
Definition at line 521 of file vpp_echo_common.c.
echo_session_t* echo_session_new | ( | echo_main_t * | em | ) |
void echo_session_print_stats | ( | echo_main_t * | em, |
echo_session_t * | session | ||
) |
Definition at line 616 of file vpp_echo_common.c.
uword echo_unformat_close | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 223 of file vpp_echo_common.c.
uword echo_unformat_crypto_engine | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 497 of file vpp_echo_common.c.
uword echo_unformat_timing_event | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 238 of file vpp_echo_common.c.
Definition at line 117 of file vpp_echo_common.c.
void init_error_string_table | ( | ) |
Definition at line 133 of file vpp_echo_common.c.
uword unformat_ip4_address | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 76 of file ip4_format.c.
uword unformat_ip6_address | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 138 of file ip6_format.c.
uword unformat_transport_proto | ( | unformat_input_t * | input, |
va_list * | args | ||
) |
Definition at line 155 of file transport.c.
int wait_for_state_change | ( | echo_main_t * | em, |
connection_state_t | state, | ||
f64 | timeout | ||
) |
Definition at line 588 of file vpp_echo_common.c.
char* echo_fail_code_str[] |
Definition at line 21 of file vpp_echo_common.c.
echo_main_t echo_main |
Definition at line 24 of file vpp_echo.c.