Mark padlock(4) and cryptocteon(4) as software drivers.
Both already return the accelerated software priority from cryptodev_probesession. Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D25125
This commit is contained in:
parent
c8c5600701
commit
cea399ec0e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361990
@ -119,7 +119,7 @@ padlock_attach(device_t dev)
|
||||
struct padlock_softc *sc = device_get_softc(dev);
|
||||
|
||||
sc->sc_cid = crypto_get_driverid(dev, sizeof(struct padlock_session),
|
||||
CRYPTOCAP_F_HARDWARE);
|
||||
CRYPTOCAP_F_SOFTWARE | CRYPTOCAP_F_SYNC);
|
||||
if (sc->sc_cid < 0) {
|
||||
device_printf(dev, "Could not get crypto driver id.\n");
|
||||
return (ENOMEM);
|
||||
|
@ -86,7 +86,7 @@ cryptocteon_attach(device_t dev)
|
||||
sc = device_get_softc(dev);
|
||||
|
||||
sc->sc_cid = crypto_get_driverid(dev, sizeof(struct octo_sess),
|
||||
CRYPTOCAP_F_HARDWARE | CRYPTOCAP_F_SYNC);
|
||||
CRYPTOCAP_F_SOFTWARE | CRYPTOCAP_F_SYNC);
|
||||
if (sc->sc_cid < 0) {
|
||||
device_printf(dev, "crypto_get_driverid ret %d\n", sc->sc_cid);
|
||||
return (ENXIO);
|
||||
|
Loading…
Reference in New Issue
Block a user