FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | policer_handoff_trace_t_ |
Macros | |
#define | IP4_NON_DSCP_BITS 0x03 |
#define | IP4_DSCP_SHIFT 2 |
#define | IP6_NON_DSCP_BITS 0xf03fffff |
#define | IP6_DSCP_SHIFT 22 |
Typedefs | |
typedef struct policer_handoff_trace_t_ | policer_handoff_trace_t |
Enumerations | |
enum | policer_handoff_error_t { POLICER_HANDOFF_ERROR_CONGESTION_DROP } |
Functions | |
static_always_inline void | vnet_policer_mark (vlib_buffer_t *b, ip_dscp_t 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, bool handoff) |
u8 * | format_policer_handoff_trace (u8 *s, va_list *args) |
static_always_inline uword | policer_handoff (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u32 fq_index, u32 policer_index) |
#define IP4_DSCP_SHIFT 2 |
Definition at line 23 of file police_inlines.h.
#define IP4_NON_DSCP_BITS 0x03 |
Definition at line 22 of file police_inlines.h.
#define IP6_DSCP_SHIFT 22 |
Definition at line 25 of file police_inlines.h.
#define IP6_NON_DSCP_BITS 0xf03fffff |
Definition at line 24 of file police_inlines.h.
typedef struct policer_handoff_trace_t_ policer_handoff_trace_t |
Enumerator | |
---|---|
POLICER_HANDOFF_ERROR_CONGESTION_DROP |
Definition at line 102 of file police_inlines.h.
static_always_inline uword policer_handoff | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | frame, | ||
u32 | fq_index, | ||
u32 | policer_index | ||
) |
static_always_inline void vnet_policer_mark | ( | vlib_buffer_t * | b, |
ip_dscp_t | dscp | ||
) |
Definition at line 28 of file police_inlines.h.
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, | ||
bool | handoff | ||
) |
Definition at line 59 of file police_inlines.h.