diff options
author | 2023-03-07 18:55:47 +0100 | |
---|---|---|
committer | 2023-03-21 15:08:12 +0100 | |
commit | 7d0b9ab9ac20b727f9c59b241a49ed5338754ae1 (patch) | |
tree | d6fc896e2e52d963de89f0b505096254a2bf8b5a /LICENSES/preferred/BSD-3-Clause | |
parent | octeontx2-vf: Add missing free for alloc_percpu (diff) | |
download | wireguard-linux-stable.tar.xz wireguard-linux-stable.zip |
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@vger.kernel.org
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'LICENSES/preferred/BSD-3-Clause')
0 files changed, 0 insertions, 0 deletions