Skip to contentSkip to conversation

examples/l2fwd-crypto: fix physical address setting

PATCH Applied Pablo de Lara 1 participant 2 messages Oct 24, 2017 – Oct 25, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 examples/l2fwd-crypto: fix physical address setting

For AEAD algorithms, the physical address for the digest was being set incorrectly.

Fixes 2661f4fbe93d ("examples/l2fwd-crypto: add AEAD parameters")
---
 examples/l2fwd-crypto/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
examples/l2fwd-crypto/main.c +1 -1
index fa995e7..49183bc 100644
@@ -559,7 +559,7 @@ l2fwd_simple_crypto_enqueue(struct rte_mbuf *m,
 				uint8_t *) + ipdata_offset + data_len;
 		}
 
-		op->sym->auth.digest.phys_addr = rte_pktmbuf_mtophys_offset(m,
+		op->sym->aead.digest.phys_addr = rte_pktmbuf_mtophys_offset(m,
 				rte_pktmbuf_pkt_len(m) - cparams->digest_length);
 
 		if (cparams->aad.length) {
Signature · 1 line
2.9.4
author Applied
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: De Lara Guarch, Pablo
Sent: Tuesday, October 24, 2017 11:15 AM
To: Doherty, Declan <[email protected]>
Cc: [email protected]; De Lara Guarch, Pablo <[email protected]>; [email protected]
Subject: [PATCH] examples/l2fwd-crypto: fix physical address setting

Quoted 7 lines

For AEAD algorithms, the physical address for the digest was being set incorrectly.

Fixes 2661f4fbe93d ("examples/l2fwd-crypto: add AEAD parameters")

Applied to dpdk-next-crypto.
Thanks,

Pablo