From 8ed06c0dd349be7bb8f61a3189afb8c79ef565b4 Mon Sep 17 00:00:00 2001 From: PiotrX Kleski Date: Tue, 24 Nov 2020 07:34:09 +0000 Subject: crypto: fixed vnet_crypto_async_reset_frame assert Type: fix Changed vnet_crypto_async_reset_frame assert to expect also ERROR state frames. Signed-off-by: PiotrX Kleski Change-Id: I3abc29f3f9642027aee38a59a932e54c90da859d --- src/vnet/crypto/crypto.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/vnet/crypto/crypto.h b/src/vnet/crypto/crypto.h index fdda571d054..529c70ac088 100644 --- a/src/vnet/crypto/crypto.h +++ b/src/vnet/crypto/crypto.h @@ -648,7 +648,8 @@ vnet_crypto_async_reset_frame (vnet_crypto_async_frame_t * f) { vnet_crypto_async_op_id_t opt; ASSERT (f != 0); - ASSERT (f->state == VNET_CRYPTO_FRAME_STATE_NOT_PROCESSED); + ASSERT ((f->state == VNET_CRYPTO_FRAME_STATE_NOT_PROCESSED + || f->state == VNET_CRYPTO_FRAME_STATE_ELT_ERROR)); opt = f->op; if (CLIB_DEBUG > 0) clib_memset (f, 0xfe, sizeof (*f)); -- cgit 1.2.3-korg