summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2016-05-03 14:52:39 +0000
committermpi <mpi@openbsd.org>2016-05-03 14:52:39 +0000
commit72cad57c530700bc0ee61bd93860a3d2f898f8b0 (patch)
tree934dc9d745ddad6a604f0777250238c45937bcce /lib
parentsupport doas (diff)
downloadwireguard-openbsd-72cad57c530700bc0ee61bd93860a3d2f898f8b0.tar.xz
wireguard-openbsd-72cad57c530700bc0ee61bd93860a3d2f898f8b0.zip
Stop using a soft-interrupt context to process incoming network packets.
Use a new task that runs holding the KERNEL_LOCK to execute mp-unsafe code. Our current goal is to progressively move input functions to the unlocked task. This gives a small performance boost confirmed by Hrvoje Popovski's IPv4 forwarding measurement: before: after: send receive send receive 400kpps 400kpps 400kpps 400kpps 500kpps 500kpps 500kpps 500kpps 600kpps 600kpps 600kpps 600kpps 650kpps 650kpps 650kpps 640kpps 700kpps 700kpps 700kpps 700kpps 720kpps 640kpps 720kpps 710kpps 800kpps 640kpps 800kpps 650kpps 1.4Mpps 570kpps 1.4Mpps 590kpps 14Mpps 570kpps 14Mpps 590kpps ok kettenis@, bluhm@, dlg@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions