diff options
author | sam <sam@FreeBSD.org> | 2003-06-27 20:07:10 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-06-27 20:07:10 +0000 |
commit | e6589a620a554ff7fdfd4d65dcb123787738ffa8 (patch) | |
tree | abc501f01c8b5f6abaa2809bc2c82a2c09eaf55e /sys/dev/ubsec/ubsec.c | |
parent | 0b4d9704b927e84d9d5616e2ae39c36679ea5588 (diff) | |
download | FreeBSD-src-e6589a620a554ff7fdfd4d65dcb123787738ffa8.zip FreeBSD-src-e6589a620a554ff7fdfd4d65dcb123787738ffa8.tar.gz |
Add support to eliminate a context switch per crypto op when using the
software crypto device:
o record crypto device capabilities in each session id
o add a capability that indicates if the crypto driver operates synchronously
o tag the software crypto driver as operating synchronously
This commit also introduces crypto session id macros that cleanup their
construction and querying.
Diffstat (limited to 'sys/dev/ubsec/ubsec.c')
-rw-r--r-- | sys/dev/ubsec/ubsec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ubsec/ubsec.c b/sys/dev/ubsec/ubsec.c index 26d415b..6f62982 100644 --- a/sys/dev/ubsec/ubsec.c +++ b/sys/dev/ubsec/ubsec.c @@ -974,7 +974,7 @@ ubsec_freesession(void *arg, u_int64_t tid) { struct ubsec_softc *sc = arg; int session, ret; - u_int32_t sid = ((u_int32_t) tid) & 0xffffffff; + u_int32_t sid = CRYPTO_SESID2LID(tid); if (sc == NULL) return (EINVAL); |