57 #define POLICER_TICKS_PER_PERIOD_SHIFT 17 58 #define POLICER_TICKS_PER_PERIOD (1 << POLICER_TICKS_PER_PERIOD_SHIFT) 95 u64 current_tokens, extended_tokens;
99 packet_length = packet_length << policer->
scale;
141 && (current_tokens >= packet_length))
148 && (extended_tokens >= packet_length))
183 || (extended_tokens < packet_length))
190 || (current_tokens < packet_length))
206 #endif // __POLICE_H__ u8 pad[3]
log2 (size of the packing page block)
u32 pir_tokens_per_period
static policer_result_e vnet_police_packet(policer_read_response_type_st *policer, u32 packet_length, policer_result_e packet_color, u64 time)
u32 cir_tokens_per_period