[v2,2/5] examples/l2fwd-crypto: add support for SNOW-V
Checks
Commit Message
Update l2fwd-crypto to be able to correctly handle SNOW-V
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
---
examples/l2fwd-crypto/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -508,7 +508,8 @@ l2fwd_simple_crypto_enqueue(struct rte_mbuf *m,
/* For wireless algorithms, offset/length must be in bits */
if (cparams->cipher_algo == RTE_CRYPTO_CIPHER_SNOW3G_UEA2 ||
cparams->cipher_algo == RTE_CRYPTO_CIPHER_KASUMI_F8 ||
- cparams->cipher_algo == RTE_CRYPTO_CIPHER_ZUC_EEA3) {
+ cparams->cipher_algo == RTE_CRYPTO_CIPHER_ZUC_EEA3 ||
+ cparams->cipher_algo == RTE_CRYPTO_CIPHER_SNOW_V) {
op->sym->cipher.data.offset = ipdata_offset << 3;
op->sym->cipher.data.length = data_len << 3;
} else {