Re: [PATCH net 1/3] wireguard: queueing: use saner cpu selection wrapping

From: Linus Torvalds
Date: Mon Jul 03 2023 - 00:12:23 EST


On Sun, 2 Jul 2023 at 18:27, Jason A. Donenfeld <Jason@xxxxxxxxx> wrote:
>
> Using `% nr_cpumask_bits` is slow and complicated, and not totally
> robust toward dynamic changes to CPU topologies. Rather than storing the
> next CPU in the round-robin, just store the last one, and also return
> that value. This simplifies the loop drastically into a much more common
> pattern.
>
> Fixes: e7096c131e51 ("net: WireGuard secure network tunnel")
> Cc: stable@xxxxxxxxxxxxxxx
> Reported-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

Heh, thank you. Your memory is better than mine. That "Reported-by"
mystified me, so I had to go search for it.

March is clearly too long ago for me to remember anything.

I'm like a goldfish.

Linus