summaryrefslogtreecommitdiff
path: root/sys/crypto/cryptodev.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2016-04-18 21:05:56 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2016-04-18 21:05:56 +0000
commit2f747c7b1d378224cd68f3aaa6cbc2af33ef2de2 (patch)
tree7a7544e67362a24f8b1eaaa8163e4edd58a6e5a1 /sys/crypto/cryptodev.h
parent1786574bd57329beb78be27f0c9fd67a0f633a01 (diff)
Add a mechanism for dispatching mpsafe crypto operations. This adds a new
CRYPTOCAP_F_MPSAFE flag that crypto implementations can set to indicate that their cc_process() implementation can safely run without holding the kernel lock. ok mikeb@
Diffstat (limited to 'sys/crypto/cryptodev.h')
-rw-r--r--sys/crypto/cryptodev.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/crypto/cryptodev.h b/sys/crypto/cryptodev.h
index cb29bf54a22..e7ba22ab2ee 100644
--- a/sys/crypto/cryptodev.h
+++ b/sys/crypto/cryptodev.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptodev.h,v 1.67 2015/12/10 21:00:51 naddy Exp $ */
+/* $OpenBSD: cryptodev.h,v 1.68 2016/04/18 21:05:55 kettenis Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
@@ -208,6 +208,7 @@ struct cryptocap {
u_int8_t cc_flags;
#define CRYPTOCAP_F_CLEANUP 0x01
#define CRYPTOCAP_F_SOFTWARE 0x02
+#define CRYPTOCAP_F_MPSAFE 0x04
int (*cc_newsession) (u_int32_t *, struct cryptoini *);
int (*cc_process) (struct cryptop *);