summaryrefslogtreecommitdiff
path: root/examples/l2fwd-crypto
diff options
context:
space:
mode:
authorPablo de Lara <pablo.de.lara.guarch@intel.com>2017-10-24 11:14:41 +0100
committerPablo de Lara <pablo.de.lara.guarch@intel.com>2017-10-25 18:11:01 +0200
commitf12a5b5b27bc1dfb7e1296c92b13e58f68b26aaf (patch)
treed0782c709ab17e90efb7659b215884b687f33780 /examples/l2fwd-crypto
parent2a41fb7c65259e36a8fb1c60eb2c5fc73ade9575 (diff)
downloaddpdk-f12a5b5b27bc1dfb7e1296c92b13e58f68b26aaf.zip
dpdk-f12a5b5b27bc1dfb7e1296c92b13e58f68b26aaf.tar.gz
dpdk-f12a5b5b27bc1dfb7e1296c92b13e58f68b26aaf.tar.xz
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 <pablo.de.lara.guarch@intel.com>
Diffstat (limited to 'examples/l2fwd-crypto')
-rw-r--r--examples/l2fwd-crypto/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c
index fa995e7..49183bc 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) {