56 #define POLICER_TICKS_PER_PERIOD_SHIFT 17 57 #define POLICER_TICKS_PER_PERIOD (1 << POLICER_TICKS_PER_PERIOD_SHIFT) 92 uint64_t current_tokens, extended_tokens;
96 packet_length = packet_length << policer->
scale;
178 #endif // __POLICE_H__
static policer_result_e vnet_police_packet(policer_read_response_type_st *policer, uint32_t packet_length, policer_result_e packet_color, uint64_t time)
uint64_t last_update_time
uint32_t cir_tokens_per_period
uint32_t pir_tokens_per_period