]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: reduce redundant per-packet overhead in RX path
authorJordan Whited <jordan@tailscale.com>
Tue, 7 Nov 2023 23:24:21 +0000 (15:24 -0800)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 11 Dec 2023 15:34:09 +0000 (16:34 +0100)
commit7c20311b3d30b96576a95fec31f58e4d5e0d3234
tree81e434bd02155f6519929562c8e9ee7ed6b303de
parent4ffa9c20327b9471c3eeb142347f679b69f84648
device: reduce redundant per-packet overhead in RX path

Peer.RoutineSequentialReceiver() deals with packet vectors and does not
need to perform timer and endpoint operations for every packet in a
given vector. Changing these per-packet operations to per-vector
improves throughput by as much as 10% in some environments.

Signed-off-by: Jordan Whited <jordan@tailscale.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
device/receive.go