Home
last modified time | relevance | path

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

/linux-6.1.9/net/ipv4/
Dicmp.c227 } icmp_global = { variable
228 .lock = __SPIN_LOCK_UNLOCKED(icmp_global.lock),
247 if (!READ_ONCE(icmp_global.credit)) { in icmp_global_allow()
248 delta = min_t(u32, now - READ_ONCE(icmp_global.stamp), HZ); in icmp_global_allow()
253 spin_lock(&icmp_global.lock); in icmp_global_allow()
254 delta = min_t(u32, now - icmp_global.stamp, HZ); in icmp_global_allow()
258 WRITE_ONCE(icmp_global.stamp, now); in icmp_global_allow()
260 credit = min_t(u32, icmp_global.credit + incr, in icmp_global_allow()
269 WRITE_ONCE(icmp_global.credit, credit); in icmp_global_allow()
270 spin_unlock(&icmp_global.lock); in icmp_global_allow()