+18
−18
+12
−15
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Apparently the spinlock on incoming_handshake's skb_queue is highly contended, and a torrent of handshake or cookie packets can bring the data plane to its knees, simply by virtue of enqueueing the handshake packets to be processed asynchronously. So, we try switching this to a ring buffer to hopefully have less lock contention. This alleviates the problem somewhat, though it still isn't perfect, so future patches will have to improve this further. However, it at least doesn't completely diminish the data plane. Bug: 254441685 Reported-by:Streun Fabio <fstreun@student.ethz.ch> Reported-by:
Joel Wanner <joel.wanner@inf.ethz.ch> Fixes: e7096c131e51 ("net: WireGuard secure network tunnel") Signed-off-by:
Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by:
Jakub Kicinski <kuba@kernel.org> (cherry picked from commit 886fcee939adb5e2af92741b90643a59f2b54f97) Signed-off-by:
Lee Jones <joneslee@google.com> Change-Id: I632f90bb3c4356df090dda1023f5f0614bfdba40