25 #define NUM_POLICE_RESULTS 3 33 } __clib_packed qos_action_type_en;
70 #define POLICER_TICKS_PER_PERIOD_SHIFT 17 71 #define POLICER_TICKS_PER_PERIOD (1 << POLICER_TICKS_PER_PERIOD_SHIFT) 110 u64 current_tokens, extended_tokens;
114 packet_length = packet_length << policer->
scale;
156 && (current_tokens >= packet_length))
163 && (extended_tokens >= packet_length))
198 || (extended_tokens < packet_length))
205 || (current_tokens < packet_length))
221 #endif // __POLICE_H__ u8 pad[3]
log2 (size of the packing page block)
#define CLIB_CACHE_LINE_ALIGN_MARK(mark)
u32 cir_tokens_per_period
static policer_result_e vnet_police_packet(policer_t *policer, u32 packet_length, policer_result_e packet_color, u64 time)
u32 pir_tokens_per_period
enum ip_dscp_t_ ip_dscp_t
vl_api_mac_event_action_t action
STATIC_ASSERT_SIZEOF(policer_t, CLIB_CACHE_LINE_BYTES)
#define CLIB_CACHE_LINE_BYTES