diff options
author | Damjan Marion <damarion@cisco.com> | 2019-03-28 21:40:48 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-03-28 23:29:22 +0000 |
commit | a03d18238350f9941357caca28957395ad737810 (patch) | |
tree | 1a87522460cc9d2c1e349daff7b4f0f709704d29 /src/vnet/crypto | |
parent | 1e3aa5e213c23588981ee17d1413a0441a40527a (diff) |
crypto: add vnet_crypto_op_init (...)
Change-Id: I2018d8367bb010e1ab30d9c7c23d9501fc38a2e5
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/crypto')
-rw-r--r-- | src/vnet/crypto/crypto.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vnet/crypto/crypto.h b/src/vnet/crypto/crypto.h index 62db291fce2..7a9ca2c2278 100644 --- a/src/vnet/crypto/crypto.h +++ b/src/vnet/crypto/crypto.h @@ -165,6 +165,16 @@ format_function_t format_vnet_crypto_alg; format_function_t format_vnet_crypto_engine; format_function_t format_vnet_crypto_op; + +static_always_inline void +vnet_crypto_op_init (vnet_crypto_op_t * op, vnet_crypto_op_type_t type) +{ + if (CLIB_DEBUG > 0) + clib_memset (op, 0xfe, sizeof (*op)); + op->op = type; + op->flags = 0; +} + #endif /* included_vnet_crypto_crypto_h */ /* |