[v2,2/5] examples/l2fwd-crypto: add support for SNOW-V

Message ID 20250411101425.3041736-3-radu.nicolau@intel.com (mailing list archive)
State New
Delegated to: akhil goyal
Headers
Series add SNOW-V support in ipsec_mb PMD |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Radu Nicolau April 11, 2025, 10:09 a.m. UTC
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(-)
  

Patch

diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c
index a441312f55..f1a6ca8899 100644
--- a/examples/l2fwd-crypto/main.c
+++ b/examples/l2fwd-crypto/main.c
@@ -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 {