path: root/examples/l2fwd-crypto
diff options
authorPablo de Lara <>2017-07-02 06:41:18 +0100
committerPablo de Lara <>2017-07-06 22:26:49 +0200
commit7f0034275a242af43c0108daf7a9add6677ab62b (patch)
tree280c6f6ffdd905561c81b34796b2853c90a38c96 /examples/l2fwd-crypto
parent12a4aaf1df41669caf25151d2495cc48341e3e9a (diff)
cryptodev: remove digest length from crypto op
Digest length was duplicated in the authentication transform and the crypto operation structures. Since digest length is not expected to change in a same session, it is removed from the crypto operation. Also, the length has been shrunk to 16 bits, which should be sufficient for any digest. Signed-off-by: Pablo de Lara <> Acked-by: Declan Doherty <> Acked-by: Akhil Goyal <> Acked-by: Fiona Trahe <>
Diffstat (limited to 'examples/l2fwd-crypto')
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c
index 776595d..7d92ab4 100644
--- a/examples/l2fwd-crypto/main.c
+++ b/examples/l2fwd-crypto/main.c
@@ -481,7 +481,6 @@ l2fwd_simple_crypto_enqueue(struct rte_mbuf *m,
op->sym->auth.digest.phys_addr = rte_pktmbuf_mtophys_offset(m,
rte_pktmbuf_pkt_len(m) - cparams->digest_length);
- op->sym->auth.digest.length = cparams->digest_length;
/* For wireless algorithms, offset/length must be in bits */
if (cparams->auth_algo == RTE_CRYPTO_AUTH_SNOW3G_UIA2 ||