Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2019 08:46:36 -0700
From:      John Baldwin <jhb@FreeBSD.org>
To:        Slawa Olhovchenkov <slw@zxy.spb.ru>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   Re: svn commit: r345040 - in stable/11: share/man/man4 sys/conf sys/dev/cxgbe sys/dev/cxgbe/crypto sys/dev/cxgbe/firmware sys/modules/cxgbe sys/modules/cxgbe/ccr sys/powerpc/conf
Message-ID:  <be8fd4b7-403c-4958-6682-673ba6da9ce1@FreeBSD.org>
In-Reply-To: <20190312133258.GA6462@zxy.spb.ru>
References:  <201903112316.x2BNGA4b092507@repo.freebsd.org> <20190312133258.GA6462@zxy.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3/12/19 6:32 AM, Slawa Olhovchenkov wrote:
> On Mon, Mar 11, 2019 at 11:16:10PM +0000, John Baldwin wrote:
> 
>> Author: jhb
>> Date: Mon Mar 11 23:16:10 2019
>> New Revision: 345040
>> URL: https://svnweb.freebsd.org/changeset/base/345040
>>
>> Log:
>>   MFC 318429,318967,319721,319723,323600,323724,328353-328361,330042,343056:
>>   Add a driver for the Chelsio T6 crypto accelerator engine.
> 
> Where I can find example/manual of use this engine from userspace?

It's hard to use usefully from userspace (even in 12/head).  I have some
old patches for openssl 1.0.2's cryptodev engine to teach it about more
of the algorithms supported by OCF including the TLS variant of AES-GCM,
but I found that the overhead of the extra copies made it not very
compelling compared to using AES-NI in userland.  (I had some extra
changes to make /dev/crypto wire the user pages to avoid the copies
and that got the /dev/crypto case down to break-even with doing AES-NI
in userland.)  In the kernel I see better performance where using T6
to offload crypto for IPsec does use less CPU at higher throughput than
using CPU instructions though for AES-GCM AES-NI on the CPU is pretty
close.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?be8fd4b7-403c-4958-6682-673ba6da9ce1>