Home
last modified time | relevance | path

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

/net/ipv4/
Dicmp.c235 } icmp_global = { variable
236 .lock = __SPIN_LOCK_UNLOCKED(icmp_global.lock),
255 if (!READ_ONCE(icmp_global.credit)) { in icmp_global_allow()
256 delta = min_t(u32, now - READ_ONCE(icmp_global.stamp), HZ); in icmp_global_allow()
261 spin_lock(&icmp_global.lock); in icmp_global_allow()
262 delta = min_t(u32, now - icmp_global.stamp, HZ); in icmp_global_allow()
266 WRITE_ONCE(icmp_global.stamp, now); in icmp_global_allow()
268 credit = min_t(u32, icmp_global.credit + incr, in icmp_global_allow()
277 WRITE_ONCE(icmp_global.credit, credit); in icmp_global_allow()
278 spin_unlock(&icmp_global.lock); in icmp_global_allow()