aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorPiotrX Kleski <piotrx.kleski@intel.com>2020-11-24 07:34:09 +0000
committerDamjan Marion <dmarion@me.com>2020-12-04 22:52:54 +0000
commit8ed06c0dd349be7bb8f61a3189afb8c79ef565b4 (patch)
treef403ff203f78d915c62556522d300a3bc9b000ae /src/vnet
parentef69b5103438ec099cf080b54a88a5333b1c055b (diff)
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 <piotrx.kleski@intel.com> Change-Id: I3abc29f3f9642027aee38a59a932e54c90da859d
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/crypto/crypto.h3
1 files changed, 2 insertions, 1 deletions
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));