aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LICENSES/preferred/BSD-3-Clause
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2023-03-07 18:55:47 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2023-03-21 15:08:12 +0100
commit7d0b9ab9ac20b727f9c59b241a49ed5338754ae1 (patch)
treed6fc896e2e52d963de89f0b505096254a2bf8b5a /LICENSES/preferred/BSD-3-Clause
parentocteontx2-vf: Add missing free for alloc_percpu (diff)
downloadwireguard-linux-stable.tar.xz
wireguard-linux-stable.zip
wireguard: queueing: use saner cpu selection wrappingHEADstable
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