summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_ipcomp.h
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2017-02-07 17:25:45 +0000
committerpatrick <patrick@openbsd.org>2017-02-07 17:25:45 +0000
commite410e70d23f72ad4c503f395ca0443e81460573b (patch)
tree745d19665eb650984c84f1d62eabc70e4ada9d59 /sys/netinet/ip_ipcomp.h
parentDECSLRM in xterm(1) appears to have a quirk where it can generate an (diff)
downloadwireguard-openbsd-e410e70d23f72ad4c503f395ca0443e81460573b.tar.xz
wireguard-openbsd-e410e70d23f72ad4c503f395ca0443e81460573b.zip
Reduce the per-packet allocation costs for crypto operations (cryptop)
by pre-allocating two cryptodesc objects and storing them in an array instead of a linked list. If more than two cryptodesc objects are required use mallocarray to fetch them. Adapt the drivers to the new API. This change results in one pool-get per ESP packet instead of three. It also simplifies softraid crypto where more cryptodesc objects are allocated than used. From, with and ok markus@, ok bluhm@ "looks sane" mpi@
Diffstat (limited to 'sys/netinet/ip_ipcomp.h')
0 files changed, 0 insertions, 0 deletions