Home
last modified time | relevance | path

Searched refs:PACKET_COST (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/drivers/net/wireguard/
Dratelimiter.c37 PACKET_COST = NSEC_PER_SEC / PACKETS_PER_SECOND, enumerator
38 TOKEN_MAX = PACKET_COST * PACKETS_BURSTABLE
126 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()