-/* $OpenBSD: crypto.c,v 1.88 2021/10/21 22:59:08 tobhe Exp $ */
+/* $OpenBSD: crypto.c,v 1.89 2021/10/21 23:03:48 tobhe Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
*
struct pool cryptop_pool; /* [I] set of crypto descriptors */
-struct taskq *crypto_taskq; /* [I] run crypto_invoke() and callback
- with kernel lock */
-struct taskq *crypto_taskq_mpsafe; /* [I] run crypto_invoke()
- without kernel lock */
-
/*
* Create a new session.
*/
void
crypto_init(void)
{
- crypto_taskq = taskq_create("crypto", 1, IPL_VM, 0);
- crypto_taskq_mpsafe = taskq_create("crynlk", 1, IPL_VM, TASKQ_MPSAFE);
-
pool_init(&cryptop_pool, sizeof(struct cryptop), 0, IPL_VM, 0,
"cryptop", NULL);
}
-/* $OpenBSD: cryptodev.h,v 1.77 2021/10/21 22:59:08 tobhe Exp $ */
+/* $OpenBSD: cryptodev.h,v 1.78 2021/10/21 23:03:48 tobhe Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
/* Structure describing complete operation */
struct cryptop {
- struct task crp_task;
-
u_int64_t crp_sid; /* Session ID */
int crp_ilen; /* Input data total length */
int crp_olen; /* Result total length */