FD.io VPP
v20.09-64-g4f7b92f0a
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | vcl_test_cfg_t |
struct | vcl_test_stats_t |
struct | vcl_test_session_t |
Macros | |
#define | vtfail(_fn, _rv) |
#define | vterr(_fn, _rv) |
#define | vtwrn(_fmt, _args...) fprintf (stderr, "\nERROR: " _fmt "\n", ##_args) \ |
#define | vtinf(_fmt, _args...) fprintf (stdout, "vt<w%u>: " _fmt "\n", __wrk_index, ##_args) |
#define | vt_atomic_add(_ptr, _val) __atomic_fetch_add (_ptr, _val, __ATOMIC_RELEASE) |
#define | VCL_TEST_TOKEN_HELP "#H" |
#define | VCL_TEST_TOKEN_EXIT "#X" |
#define | VCL_TEST_TOKEN_VERBOSE "#V" |
#define | VCL_TEST_TOKEN_TXBUF_SIZE "#T:" |
#define | VCL_TEST_TOKEN_NUM_TEST_SESS "#I:" |
#define | VCL_TEST_TOKEN_NUM_WRITES "#N:" |
#define | VCL_TEST_TOKEN_RXBUF_SIZE "#R:" |
#define | VCL_TEST_TOKEN_SHOW_CFG "#C" |
#define | VCL_TEST_TOKEN_RUN_UNI "#U" |
#define | VCL_TEST_TOKEN_RUN_BI "#B" |
#define | VCL_TEST_SERVER_PORT 22000 |
#define | VCL_TEST_LOCALHOST_IPADDR "127.0.0.1" |
#define | VCL_TEST_CFG_CTRL_MAGIC 0xfeedface |
#define | VCL_TEST_CFG_NUM_WRITES_DEF 1000000 |
#define | VCL_TEST_CFG_TXBUF_SIZE_DEF 8192 |
#define | VCL_TEST_CFG_RXBUF_SIZE_DEF (64*VCL_TEST_CFG_TXBUF_SIZE_DEF) |
#define | VCL_TEST_CFG_BUF_SIZE_MIN 128 |
#define | VCL_TEST_CFG_MAX_TEST_SESS 32 |
#define | VCL_TEST_CFG_MAX_EPOLL_EVENTS 16 |
#define | VCL_TEST_DELAY_DISCONNECT 1 |
#define | VCL_TEST_SEPARATOR_STRING " -----------------------------\n" |
#define | INDENT "\n " |
Enumerations | |
enum | vcl_test_t { VCL_TEST_TYPE_NONE, VCL_TEST_TYPE_ECHO, VCL_TEST_TYPE_UNI, VCL_TEST_TYPE_BI, VCL_TEST_TYPE_EXIT } |
Functions | |
static void | vcl_test_stats_accumulate (vcl_test_stats_t *accum, vcl_test_stats_t *incr) |
static void | vcl_test_cfg_init (vcl_test_cfg_t *cfg) |
static int | vcl_test_cfg_verify (vcl_test_cfg_t *cfg, vcl_test_cfg_t *valid_cfg) |
static void | vcl_test_buf_alloc (vcl_test_cfg_t *cfg, uint8_t is_rxbuf, uint8_t **buf, uint32_t *bufsize) |
static void | vcl_test_session_buf_alloc (vcl_test_session_t *socket) |
static char * | vcl_test_type_str (vcl_test_t t) |
static void | vcl_test_cfg_dump (vcl_test_cfg_t *cfg, uint8_t is_client) |
static void | vcl_test_stats_dump (char *header, vcl_test_stats_t *stats, uint8_t show_rx, uint8_t show_tx, uint8_t verbose) |
static int | vcl_comp_tspec (struct timespec *a, struct timespec *b) |
static int | vcl_test_read (int fd, uint8_t *buf, uint32_t nbytes, vcl_test_stats_t *stats) |
static int | vcl_test_read_ds (int fd, vppcom_data_segments_t ds, vcl_test_stats_t *stats) |
static int | vcl_test_write (int fd, uint8_t *buf, uint32_t nbytes, vcl_test_stats_t *stats, uint32_t verbose) |
static void | dump_help (void) |
Variables | |
char | vcl_test_crt_rsa [] |
uint32_t | vcl_test_crt_rsa_len = sizeof (vcl_test_crt_rsa) |
char | vcl_test_key_rsa [] |
uint32_t | vcl_test_key_rsa_len = sizeof (vcl_test_key_rsa) |
#define INDENT "\n " |
#define VCL_TEST_CFG_BUF_SIZE_MIN 128 |
Definition at line 66 of file vcl_test.h.
#define VCL_TEST_CFG_CTRL_MAGIC 0xfeedface |
Definition at line 62 of file vcl_test.h.
#define VCL_TEST_CFG_MAX_EPOLL_EVENTS 16 |
Definition at line 68 of file vcl_test.h.
#define VCL_TEST_CFG_MAX_TEST_SESS 32 |
Definition at line 67 of file vcl_test.h.
#define VCL_TEST_CFG_NUM_WRITES_DEF 1000000 |
Definition at line 63 of file vcl_test.h.
#define VCL_TEST_CFG_RXBUF_SIZE_DEF (64*VCL_TEST_CFG_TXBUF_SIZE_DEF) |
Definition at line 65 of file vcl_test.h.
#define VCL_TEST_CFG_TXBUF_SIZE_DEF 8192 |
Definition at line 64 of file vcl_test.h.
#define VCL_TEST_DELAY_DISCONNECT 1 |
Definition at line 70 of file vcl_test.h.
#define VCL_TEST_LOCALHOST_IPADDR "127.0.0.1" |
Definition at line 60 of file vcl_test.h.
#define VCL_TEST_SEPARATOR_STRING " -----------------------------\n" |
Definition at line 71 of file vcl_test.h.
#define VCL_TEST_SERVER_PORT 22000 |
Definition at line 59 of file vcl_test.h.
#define VCL_TEST_TOKEN_EXIT "#X" |
Definition at line 49 of file vcl_test.h.
#define VCL_TEST_TOKEN_HELP "#H" |
Definition at line 48 of file vcl_test.h.
#define VCL_TEST_TOKEN_NUM_TEST_SESS "#I:" |
Definition at line 52 of file vcl_test.h.
#define VCL_TEST_TOKEN_NUM_WRITES "#N:" |
Definition at line 53 of file vcl_test.h.
#define VCL_TEST_TOKEN_RUN_BI "#B" |
Definition at line 57 of file vcl_test.h.
#define VCL_TEST_TOKEN_RUN_UNI "#U" |
Definition at line 56 of file vcl_test.h.
#define VCL_TEST_TOKEN_RXBUF_SIZE "#R:" |
Definition at line 54 of file vcl_test.h.
#define VCL_TEST_TOKEN_SHOW_CFG "#C" |
Definition at line 55 of file vcl_test.h.
#define VCL_TEST_TOKEN_TXBUF_SIZE "#T:" |
Definition at line 51 of file vcl_test.h.
#define VCL_TEST_TOKEN_VERBOSE "#V" |
Definition at line 50 of file vcl_test.h.
#define vt_atomic_add | ( | _ptr, | |
_val | |||
) | __atomic_fetch_add (_ptr, _val, __ATOMIC_RELEASE) |
Definition at line 45 of file vcl_test.h.
#define vterr | ( | _fn, | |
_rv | |||
) |
Definition at line 33 of file vcl_test.h.
#define vtfail | ( | _fn, | |
_rv | |||
) |
Definition at line 25 of file vcl_test.h.
#define vtinf | ( | _fmt, | |
_args... | |||
) | fprintf (stdout, "vt<w%u>: " _fmt "\n", __wrk_index, ##_args) |
Definition at line 42 of file vcl_test.h.
#define vtwrn | ( | _fmt, | |
_args... | |||
) | fprintf (stderr, "\nERROR: " _fmt "\n", ##_args) \ |
Definition at line 39 of file vcl_test.h.
enum vcl_test_t |
Enumerator | |
---|---|
VCL_TEST_TYPE_NONE | |
VCL_TEST_TYPE_ECHO | |
VCL_TEST_TYPE_UNI | |
VCL_TEST_TYPE_BI | |
VCL_TEST_TYPE_EXIT |
Definition at line 73 of file vcl_test.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 288 of file vcl_test.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 252 of file vcl_test.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
char vcl_test_crt_rsa[] |
Definition at line 130 of file vcl_test.h.
uint32_t vcl_test_crt_rsa_len = sizeof (vcl_test_crt_rsa) |
Definition at line 154 of file vcl_test.h.
char vcl_test_key_rsa[] |
Definition at line 156 of file vcl_test.h.
uint32_t vcl_test_key_rsa_len = sizeof (vcl_test_key_rsa) |
Definition at line 184 of file vcl_test.h.