Go to the source code of this file.
|
static u8 * | format_policer_trace (u8 *s, va_list *args) |
|
static_always_inline void | vnet_policer_mark (vlib_buffer_t *b, u8 dscp) |
|
static_always_inline u8 | vnet_policer_police (vlib_main_t *vm, vlib_buffer_t *b, u32 policer_index, u64 time_in_policer_periods, policer_result_e packet_color) |
|
static uword | vnet_policer_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, vnet_policer_index_t which) |
|
uword | vnet_policer_by_sw_if_index (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) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (policer_by_sw_if_index_node, vnet_policer_by_sw_if_index) |
|
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) |
|
static uword | ip4_policer_classify (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (ip4_policer_classify_node, ip4_policer_classify) |
|
static uword | ip6_policer_classify (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (ip6_policer_classify_node, ip6_policer_classify) |
|
static uword | l2_policer_classify (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (l2_policer_classify_node, l2_policer_classify) |
|
static clib_error_t * | policer_classify_init (vlib_main_t *vm) |
|
#define foreach_policer_classify_error |
Value:_(MISS, "Policer classify misses") \
_(HIT, "Policer classify hits") \
_(CHAIN_HIT, "Polcier classify hits after chain walk") \
_(
DROP,
"Policer classify action drop")
Definition at line 547 of file node_funcs.c.
#define foreach_vnet_policer_error |
Value:_(TRANSMIT, "Packets Transmitted") \
_(
DROP,
"Packets Dropped")
Definition at line 52 of file node_funcs.c.
#define IP4_NON_DSCP_BITS 0x03 |
#define IP6_DSCP_SHIFT 22 |
#define IP6_NON_DSCP_BITS 0xf03fffff |
Enumerator |
---|
POLICER_CLASSIFY_N_ERROR |
|
Definition at line 553 of file node_funcs.c.
Enumerator |
---|
VNET_POLICER_N_ERROR |
|
Definition at line 56 of file node_funcs.c.
static u8* format_policer_classify_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_policer_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
int test_policer_add_del |
( |
u32 |
rx_sw_if_index, |
|
|
u8 * |
config_name, |
|
|
int |
is_add |
|
) |
| |
void vnet_policer_node_funcs_reference |
( |
void |
| ) |
|
Initial value:= {
.name = "ip4-policer-classify",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
static char * policer_classify_error_strings[]
static uword ip4_policer_classify(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static u8 * format_policer_classify_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (ip4_policer_classify_node)
Definition at line 858 of file node_funcs.c.
Initial value:= {
.name = "ip6-policer-classify",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
static char * policer_classify_error_strings[]
static uword ip6_policer_classify(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static u8 * format_policer_classify_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (ip6_policer_classify_node)
Definition at line 883 of file node_funcs.c.
Initial value:=
{
{
,}
static uword l2_policer_classify(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
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 906 of file node_funcs.c.
Initial value:= {
.name = "policer-by-sw-if-index",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
static char * vnet_policer_error_strings[]
uword vnet_policer_by_sw_if_index(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static u8 * format_policer_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (policer_by_sw_if_index_node)
Definition at line 363 of file node_funcs.c.
char* policer_classify_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_policer_classify_error
Definition at line 561 of file node_funcs.c.
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 513 of file node_funcs.c.
char* vnet_policer_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_vnet_policer_error
Definition at line 64 of file node_funcs.c.