diff options
author | Tobias Heider <tobhe@cvs.openbsd.org> | 2021-10-23 15:42:36 +0000 |
---|---|---|
committer | Tobias Heider <tobhe@cvs.openbsd.org> | 2021-10-23 15:42:36 +0000 |
commit | 6f68ab8b6d3ad511171741d05610435a3488adb1 (patch) | |
tree | 257797b1c7a50b314be67c3719536ed19607513a /sys/arch/octeon | |
parent | ba7236586b8aac40ef2bb942a56fd3d669ea936a (diff) |
Retire asynchronous crypto API as it is no longer required by any driver and
adds unnecessary complexity. Dedicated crypto offloading devices are not common
anymore. Modern CPU crypto acceleration works synchronously, eliminating the need
for callbacks.
Replace all occurrences of crypto_dispatch() with crypto_invoke(), which is
blocking and only returns after the operation has completed or an error occured.
Invoke callback functions directly from the consumer (e.g. IPsec, softraid)
instead of relying on the crypto driver to call crypto_done().
ok bluhm@ mvs@ patrick@
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r-- | sys/arch/octeon/dev/octcrypto.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/octeon/dev/octcrypto.c b/sys/arch/octeon/dev/octcrypto.c index 26449679790..29017de999e 100644 --- a/sys/arch/octeon/dev/octcrypto.c +++ b/sys/arch/octeon/dev/octcrypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: octcrypto.c,v 1.6 2021/10/13 13:08:58 bluhm Exp $ */ +/* $OpenBSD: octcrypto.c,v 1.7 2021/10/23 15:42:35 tobhe Exp $ */ /* * Copyright (c) 2018 Visa Hankala @@ -658,7 +658,6 @@ out: smr_read_leave(); crp->crp_etype = error; - crypto_done(crp); return error; } |