summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2013-06-03 12:32:06 +0000
committerkettenis <kettenis@openbsd.org>2013-06-03 12:32:06 +0000
commit0cc8009b439a6446b9fc18e91e78c9d24c948ab5 (patch)
tree81e3208b1ae8643306b6ffa399b5727d969eb408 /sys/netinet/tcp_input.c
parentsprinkle $OpenBSD$, pointed out by pedro (diff)
downloadwireguard-openbsd-0cc8009b439a6446b9fc18e91e78c9d24c948ab5.tar.xz
wireguard-openbsd-0cc8009b439a6446b9fc18e91e78c9d24c948ab5.zip
Replace "hot" bcopy() calls in ether_output() with memcpy(). This tells the
compiler that source and destination are not overlapping, allowing for more aggressive optimization, leading to a significant performance improvement on busy firewalls. Reworking of a diff by dlg@, who did the hard work of benchmarking this. ok deraadt@, mikeb@, henning@, mcbride@, tedu@, matthew@
Diffstat (limited to 'sys/netinet/tcp_input.c')
0 files changed, 0 insertions, 0 deletions