FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
test_vector_funcs.h File Reference
+ Include dependency graph for test_vector_funcs.h:

Go to the source code of this file.

Data Structures

struct  test_registration_
 

Macros

#define REGISTER_TEST(x)
 

Typedefs

typedef clib_error_t *() test_fn_t(clib_error_t *)
 
typedef struct test_registration_ test_registration_t
 

Variables

test_registration_ttest_registrations [CLIB_MARCH_TYPE_N_VARIANTS]
 

Macro Definition Documentation

◆ REGISTER_TEST

#define REGISTER_TEST (   x)
Value:
static void __clib_constructor CLIB_MARCH_SFX (__test_registration_##x) ( \
void) \
{ \
test_registration_t *r = &CLIB_MARCH_SFX (__test_##x); \
test_registrations[CLIB_MARCH_SFX (CLIB_MARCH_VARIANT_TYPE)] = r; \
} \
test_registration_t CLIB_MARCH_SFX (__test_##x)

Definition at line 24 of file test_vector_funcs.h.

Typedef Documentation

◆ test_fn_t

typedef clib_error_t*() test_fn_t(clib_error_t *)

Definition at line 10 of file test_vector_funcs.h.

◆ test_registration_t

Variable Documentation

◆ test_registrations

CLIB_MARCH_SFX
#define CLIB_MARCH_SFX
Definition: cpu.h:56
CLIB_MARCH_VARIANT_TYPE
@ CLIB_MARCH_VARIANT_TYPE
Definition: cpu.h:41
r
vnet_hw_if_output_node_runtime_t * r
Definition: interface_output.c:1071
test_registration_
Definition: test_vector_funcs.h:12
test_registrations
test_registration_t * test_registrations[CLIB_MARCH_TYPE_N_VARIANTS]