FD.io VPP
v16.12-rc0-308-g931be3a
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | vnet_classify_bucket_t |
struct | vnet_classify_table_t |
Macros | |
#define | CLASSIFY_TRACE 0 |
#define | CLASSIFY_USE_SSE |
#define | U32X4_ALIGNED(p) PREDICT_TRUE((((intptr_t)p) & 0xf) == 0) |
#define | foreach_size_in_u32x4 |
#define | VNET_CLASSIFY_ENTRY_FREE (1<<0) |
Typedefs | |
typedef struct _vnet_classify_main | vnet_classify_main_t |
#define CLASSIFY_TRACE 0 |
Definition at line 41 of file vnet_classify.h.
#define CLASSIFY_USE_SSE |
Definition at line 44 of file vnet_classify.h.
#define foreach_size_in_u32x4 |
Definition at line 52 of file vnet_classify.h.
#define U32X4_ALIGNED | ( | p | ) | PREDICT_TRUE((((intptr_t)p) & 0xf) == 0) |
Definition at line 47 of file vnet_classify.h.
#define VNET_CLASSIFY_ENTRY_FREE (1<<0) |
typedef struct _vnet_classify_main vnet_classify_main_t |
Definition at line 50 of file vnet_classify.h.
typedef CLIB_PACKED | ( | struct _vnet_classify_entry{u32 next_index;union{struct{u32 opaque_index;i32 advance;};u64 opaque_count;};u32 flags;#define VNET_CLASSIFY_ENTRY_FREEunion{u64 hits;struct _vnet_classify_entry *next_free;};f64 last_heard;u32x4 key[0];} | ) |
Definition at line 590 of file vnet_classify.c.
int vnet_classify_add_del_session | ( | vnet_classify_main_t * | cm, |
u32 | table_index, | ||
u8 * | match, | ||
u32 | hit_next_index, | ||
u32 | opaque_index, | ||
i32 | advance, | ||
int | is_add | ||
) |
Definition at line 1971 of file vnet_classify.c.
int vnet_classify_add_del_table | ( | vnet_classify_main_t * | cm, |
u8 * | mask, | ||
u32 | nbuckets, | ||
u32 | memory_size, | ||
u32 | skip, | ||
u32 | match, | ||
u32 | next_table_index, | ||
u32 | miss_next_index, | ||
u32 * | table_index, | ||
int | is_add | ||
) |
Definition at line 647 of file vnet_classify.c.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
vnet_classify_entry_t* vnet_classify_find_entry | ( | vnet_classify_table_t * | t, |
u8 * | h, | ||
u64 | hash, | ||
f64 | now | ||
) |
Definition at line 562 of file vnet_classify.c.
|
inlinestatic |
Definition at line 330 of file vnet_classify.h.
|
inlinestatic |
|
inlinestatic |
u64 vnet_classify_hash_packet | ( | vnet_classify_table_t * | t, |
u8 * | h | ||
) |
|
inlinestatic |
Definition at line 180 of file vnet_classify.h.
vnet_classify_table_t* vnet_classify_new_table | ( | vnet_classify_main_t * | cm, |
u8 * | mask, | ||
u32 | nbuckets, | ||
u32 | memory_size, | ||
u32 | skip_n_vectors, | ||
u32 | match_n_vectors | ||
) |
Definition at line 107 of file vnet_classify.c.
|
inlinestatic |
Definition at line 252 of file vnet_classify.h.
|
inlinestatic |
Definition at line 300 of file vnet_classify.h.
void vnet_classify_register_unformat_acl_next_index_fn | ( | unformat_function_t * | fn | ) |
void vnet_classify_register_unformat_ip_next_index_fn | ( | unformat_function_t * | fn | ) |
void vnet_classify_register_unformat_l2_next_index_fn | ( | unformat_function_t * | fn | ) |
void vnet_classify_register_unformat_opaque_index_fn | ( | unformat_function_t * | fn | ) |
void vnet_classify_register_unformat_policer_next_index_fn | ( | unformat_function_t * | fn | ) |
foreach_size_in_u32x4 |
Definition at line 106 of file vnet_classify.h.
vlib_node_registration_t ip4_classify_node |
(constructor) VLIB_REGISTER_NODE (ip4_classify_node)
Definition at line 38 of file ip_classify.c.
vlib_node_registration_t ip6_classify_node |
(constructor) VLIB_REGISTER_NODE (ip6_classify_node)
Definition at line 39 of file ip_classify.c.
unformat_function_t unformat_classify_mask |
Definition at line 469 of file vnet_classify.h.
unformat_function_t unformat_classify_match |
Definition at line 477 of file vnet_classify.h.
unformat_function_t unformat_ip4_mask |
Definition at line 465 of file vnet_classify.h.
unformat_function_t unformat_ip4_match |
Definition at line 472 of file vnet_classify.h.
unformat_function_t unformat_ip6_mask |
Definition at line 466 of file vnet_classify.h.
unformat_function_t unformat_ip6_match |
Definition at line 473 of file vnet_classify.h.
unformat_function_t unformat_ip_next_index |
Definition at line 471 of file vnet_classify.h.
unformat_function_t unformat_l2_mask |
Definition at line 468 of file vnet_classify.h.
unformat_function_t unformat_l2_match |
Definition at line 476 of file vnet_classify.h.
unformat_function_t unformat_l2_next_index |
Definition at line 470 of file vnet_classify.h.
unformat_function_t unformat_l3_mask |
Definition at line 467 of file vnet_classify.h.
unformat_function_t unformat_l3_match |
Definition at line 474 of file vnet_classify.h.
unformat_function_t unformat_vlan_tag |
Definition at line 475 of file vnet_classify.h.
vnet_classify_main_t vnet_classify_main |
Definition at line 21 of file vnet_classify.c.