diff options
author | Damjan Marion <damarion@cisco.com> | 2021-03-05 00:14:15 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2021-03-05 00:14:53 +0100 |
commit | f9e82a229179e7c76dd4548132933ac4947d37f1 (patch) | |
tree | b38656634ad2ddeaacc7428d8fdcdc3d00b138f8 | |
parent | 452cd7e3bee6a28b40949dfeed9f87835551a7cc (diff) |
crypto: revert "fix ops flags in crypto sw scheduler"
This reverts commit 30ad571cc35e4dc6d4d7e50b81b97f83f8770eea.
Type: fix
Change-Id: If8c6e388e732d2a1b5efd0677d9528a646365f94
Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r-- | src/plugins/crypto_sw_scheduler/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/crypto_sw_scheduler/main.c b/src/plugins/crypto_sw_scheduler/main.c index 29f91b36345..980fa14e5f1 100644 --- a/src/plugins/crypto_sw_scheduler/main.c +++ b/src/plugins/crypto_sw_scheduler/main.c @@ -148,6 +148,8 @@ cryptodev_sw_scheduler_sgl (vlib_main_t * vm, u32 n_chunks = 0; u32 chunk_index = vec_len (ptd->chunks); + op->flags |= VNET_CRYPTO_OP_FLAG_CHAINED_BUFFERS; + while (len) { if (nb->current_data + nb->current_length > offset) @@ -249,12 +251,15 @@ crypto_sw_scheduler_convert_link_crypto (vlib_main_t * vm, crypto_op->iv = fe->iv; crypto_op->key_index = key->index_crypto; crypto_op->user_data = 0; - crypto_op->flags = fe->flags & ~VNET_CRYPTO_OP_FLAG_HMAC_CHECK; integ_op->op = integ_op_id; integ_op->digest = fe->digest; integ_op->digest_len = digest_len; integ_op->key_index = key->index_integ; - integ_op->flags = fe->flags & ~VNET_CRYPTO_OP_FLAG_INIT_IV; + crypto_op->flags = integ_op->flags = 0; + if (is_enc) + crypto_op->flags |= VNET_CRYPTO_OP_FLAG_INIT_IV; + else + integ_op->flags |= VNET_CRYPTO_OP_FLAG_HMAC_CHECK; crypto_op->user_data = integ_op->user_data = index; } |