CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2017/02/07 10:25:46

Modified files:
        sys/arch/amd64/amd64: aesni.c via.c 
        sys/arch/i386/i386: via.c 
        sys/arch/i386/pci: glxsb.c 
        sys/crypto     : crypto.c cryptodev.h cryptosoft.c 
        sys/dev        : softraid_crypto.c 
        sys/dev/pci    : hifn7751.c safe.c ubsec.c 
        sys/netinet    : ip_ah.c ip_esp.c ip_ipcomp.c 

Log message:
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@

Reply via email to