aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2020-06-09 22:19:36 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2020-06-09 22:19:36 +0000
commitcea399ec0e2b42e187de40f844afda39ad264c97 (patch)
tree94c2a8ad3cf116eeb1665a4e3abb6c6a5c73e3af
parentc8c5600701dec4f9c2d00c0369e1288c9a9cbe0a (diff)
downloadsrc-cea399ec0e2b42e187de40f844afda39ad264c97.tar.gz
src-cea399ec0e2b42e187de40f844afda39ad264c97.zip
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
Notes
Notes: svn path=/head/; revision=361990
-rw-r--r--sys/crypto/via/padlock.c2
-rw-r--r--sys/mips/cavium/cryptocteon/cryptocteon.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/crypto/via/padlock.c b/sys/crypto/via/padlock.c
index 7fc8a2833f8e..e0cd452bc431 100644
--- a/sys/crypto/via/padlock.c
+++ b/sys/crypto/via/padlock.c
@@ -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);
diff --git a/sys/mips/cavium/cryptocteon/cryptocteon.c b/sys/mips/cavium/cryptocteon/cryptocteon.c
index fee711a9939e..9e6bc0c358ea 100644
--- a/sys/mips/cavium/cryptocteon/cryptocteon.c
+++ b/sys/mips/cavium/cryptocteon/cryptocteon.c
@@ -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);