Go to the source code of this file.
|
static u8 * | format_policer_trace (u8 *s, va_list *args) |
|
static uword | vnet_policer_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, vnet_policer_index_t which) |
|
VLIB_NODE_FN() | policer_by_sw_if_index_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
uword | vnet_policer_by_opaque (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
uword | vnet_policer_by_either (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
void | vnet_policer_node_funcs_reference (void) |
|
int | test_policer_add_del (u32 rx_sw_if_index, u8 *config_name, int is_add) |
|
static clib_error_t * | test_policer_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static u8 * | format_policer_classify_trace (u8 *s, va_list *args) |
|
static uword | policer_classify_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, policer_classify_table_id_t tid) |
|
VLIB_NODE_FN() | ip4_policer_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
VLIB_NODE_FN() | ip6_policer_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
VLIB_NODE_FN() | l2_policer_classify_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static clib_error_t * | policer_classify_init (vlib_main_t *vm) |
|
◆ foreach_policer_classify_error
#define foreach_policer_classify_error |
Value:_(MISS, "Policer classify misses") \
_(HIT, "Policer classify hits") \
_(CHAIN_HIT, "Policer classify hits after chain walk") \
_(
DROP,
"Policer classify action drop")
Definition at line 492 of file node_funcs.c.
◆ foreach_vnet_policer_error
#define foreach_vnet_policer_error |
Value:_(TRANSMIT, "Packets Transmitted") \
_(
DROP,
"Packets Dropped")
Definition at line 51 of file node_funcs.c.
◆ TEST_CODE
◆ policer_classify_error_t
Enumerator |
---|
POLICER_CLASSIFY_N_ERROR | |
Definition at line 498 of file node_funcs.c.
◆ vnet_policer_error_t
Enumerator |
---|
VNET_POLICER_N_ERROR | |
Definition at line 55 of file node_funcs.c.
◆ format_policer_classify_trace()
static u8* format_policer_classify_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ format_policer_trace()
static u8* format_policer_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
◆ ip4_policer_classify_node()
◆ ip6_policer_classify_node()
◆ l2_policer_classify_node()
◆ policer_by_sw_if_index_node()
◆ policer_classify_init()
◆ policer_classify_inline()
◆ test_policer_add_del()
int test_policer_add_del |
( |
u32 |
rx_sw_if_index, |
|
|
u8 * |
config_name, |
|
|
int |
is_add |
|
) |
| |
◆ test_policer_command_fn()
◆ vnet_policer_by_either()
◆ vnet_policer_by_opaque()
◆ vnet_policer_inline()
◆ vnet_policer_node_funcs_reference()
void vnet_policer_node_funcs_reference |
( |
void |
| ) |
|
◆ ip4_policer_classify_node
Initial value:= {
.name = "ip4-policer-classify",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
static char * policer_classify_error_strings[]
static u8 * format_policer_classify_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (ip4_policer_classify_node)
Definition at line 793 of file node_funcs.c.
◆ ip6_policer_classify_node
Initial value:= {
.name = "ip6-policer-classify",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
static char * policer_classify_error_strings[]
static u8 * format_policer_classify_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (ip6_policer_classify_node)
Definition at line 815 of file node_funcs.c.
◆ l2_policer_classify_node
Initial value:= {
.name = "l2-policer-classify",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
static char * policer_classify_error_strings[]
static u8 * format_policer_classify_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (l2_policer_classify_node)
Definition at line 836 of file node_funcs.c.
◆ policer_by_sw_if_index_node
Initial value:= {
.name = "policer-by-sw-if-index",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
static char * vnet_policer_error_strings[]
vl_api_fib_path_type_t type
static u8 * format_policer_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (policer_by_sw_if_index_node)
Definition at line 310 of file node_funcs.c.
◆ policer_classify_error_strings
char* policer_classify_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_policer_classify_error
Definition at line 506 of file node_funcs.c.
◆ test_patch_command
Initial value:= {
.path = "test policer",
.short_help =
"intfc <intfc> policer <policer-config-name> [del]",
}
static clib_error_t * test_policer_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (test_patch_command)
Definition at line 457 of file node_funcs.c.
◆ vnet_policer_error_strings
char* vnet_policer_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_vnet_policer_error
Definition at line 63 of file node_funcs.c.