Skip to content

Commit

Permalink
Mark padlock(4) and cryptocteon(4) as software drivers.
Browse files Browse the repository at this point in the history
Both already return the accelerated software priority from
cryptodev_probesession.

Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D25125
  • Loading branch information
bsdjhb committed Jun 9, 2020
1 parent c8c5600 commit cea399e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sys/crypto/via/padlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion sys/mips/cavium/cryptocteon/cryptocteon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cea399e

Please sign in to comment.