Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/wireguard/
Dreceive.c295 static bool counter_validate(struct noise_replay_counter *counter, u64 their_counter) in counter_validate() argument
303 their_counter >= REJECT_AFTER_MESSAGES)) in counter_validate()
306 ++their_counter; in counter_validate()
308 if (unlikely((COUNTER_WINDOW_SIZE + their_counter) < in counter_validate()
312 index = their_counter >> ilog2(BITS_PER_LONG); in counter_validate()
314 if (likely(their_counter > counter->counter)) { in counter_validate()
321 WRITE_ONCE(counter->counter, their_counter); in counter_validate()
325 ret = !test_and_set_bit(their_counter & (BITS_PER_LONG - 1), in counter_validate()