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/hifn | |
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/hifn')
-rw-r--r-- | sys/dev/hifn/hifn7751.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hifn/hifn7751.c b/sys/dev/hifn/hifn7751.c index 3928c35..61dde34 100644 --- a/sys/dev/hifn/hifn7751.c +++ b/sys/dev/hifn/hifn7751.c @@ -2191,7 +2191,7 @@ hifn_freesession(void *arg, u_int64_t tid) { struct hifn_softc *sc = arg; int session; - u_int32_t sid = ((u_int32_t) tid) & 0xffffffff; + u_int32_t sid = CRYPTO_SESID2LID(tid); KASSERT(sc != NULL, ("hifn_freesession: null softc")); if (sc == NULL) |