From 6f68ab8b6d3ad511171741d05610435a3488adb1 Mon Sep 17 00:00:00 2001 From: Tobias Heider Date: Sat, 23 Oct 2021 15:42:36 +0000 Subject: 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@ --- sys/arch/octeon/dev/octcrypto.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/arch/octeon/dev/octcrypto.c') 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; } -- cgit v1.2.3