Searched refs:PACKET_COST (Results 1 – 1 of 1) sorted by relevance
37 PACKET_COST = NSEC_PER_SEC / PACKETS_PER_SECOND, enumerator38 TOKEN_MAX = PACKET_COST * PACKETS_BURSTABLE126 ret = tokens >= PACKET_COST; in wg_ratelimiter_allow()127 entry->tokens = ret ? tokens - PACKET_COST : tokens; in wg_ratelimiter_allow()147 entry->tokens = TOKEN_MAX - PACKET_COST; in wg_ratelimiter_allow()