From: Pablo de Lara Date: Tue, 24 Oct 2017 10:14:41 +0000 (+0100) Subject: examples/l2fwd-crypto: fix physical address setting X-Git-Tag: spdx-start~1191 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f12a5b5b27bc1dfb7e1296c92b13e58f68b26aaf;p=dpdk.git 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") Cc: stable@dpdk.org Signed-off-by: Pablo de Lara --- diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index fa995e7dda..49183bc399 100644 --- a/examples/l2fwd-crypto/main.c +++ b/examples/l2fwd-crypto/main.c @@ -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) {