]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
use a straight buffer instead of an iov w/ 1 segment... The aesni
authorJohn-Mark Gurney <jmg@FreeBSD.org>
Thu, 4 Sep 2014 23:53:51 +0000 (23:53 +0000)
committerJohn-Mark Gurney <jmg@FreeBSD.org>
Thu, 4 Sep 2014 23:53:51 +0000 (23:53 +0000)
commit89fac384c8cd2aab645b4cf0856e6f26e8289454
tree76199e34ac5ce0d23c9d45efa2d2a52e19d5c27c
parente85326216fa003042890a14e8ef303c247f4fb9a
use a straight buffer instead of an iov w/ 1 segment...  The aesni
driver when it hits a mbuf/iov buffer, it mallocs and copies the data
for processing..  This improves perf by ~8-10% on my machine...

I have thoughts of fixing AES-NI so that it can better handle segmented
buffers, which should help improve IPSEC performance, but that is for
the future...
sys/geom/eli/g_eli_crypto.c
sys/geom/eli/g_eli_integrity.c
sys/geom/eli/g_eli_privacy.c