flag that the aesni driver is sync... This means we don't waste a
context switch just to call the done callback... On my machine, this improves geli/gzero decrypt performance by ~27% from 550MB/sec to ~700MB/sec... MFC after: 3 days
This commit is contained in:
parent
587430f254
commit
23fc6e1652
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=258399
@ -92,7 +92,8 @@ aesni_attach(device_t dev)
|
||||
sc = device_get_softc(dev);
|
||||
TAILQ_INIT(&sc->sessions);
|
||||
sc->sid = 1;
|
||||
sc->cid = crypto_get_driverid(dev, CRYPTOCAP_F_HARDWARE);
|
||||
sc->cid = crypto_get_driverid(dev,
|
||||
CRYPTOCAP_F_HARDWARE|CRYPTOCAP_F_SYNC);
|
||||
if (sc->cid < 0) {
|
||||
device_printf(dev, "Could not get crypto driver id.\n");
|
||||
return (ENOMEM);
|
||||
|
Loading…
Reference in New Issue
Block a user