summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo de Lara <pablo.de.lara.guarch@intel.com>2017-07-18 08:58:16 +0100
committerPablo de Lara <pablo.de.lara.guarch@intel.com>2017-07-19 14:10:41 +0300
commit2c023071f6493c8a846ac61fa7d84ad94c8b42b8 (patch)
tree377aba5a24c992ade1a9dba3b4aeb57dd7aab53b
parent2b28344b4218a1e07e66d415b6ad9f1746fc945b (diff)
downloaddpdk-2c023071f6493c8a846ac61fa7d84ad94c8b42b8.zip
dpdk-2c023071f6493c8a846ac61fa7d84ad94c8b42b8.tar.gz
dpdk-2c023071f6493c8a846ac61fa7d84ad94c8b42b8.tar.xz
examples/l2fwd-crypto: fix digest length
Digest length was not being set when using authentication algorithms. Fixes: 2661f4fbe93d ("examples/l2fwd-crypto: add AEAD parameters") Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
-rw-r--r--examples/l2fwd-crypto/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c
index 84b727b..664e0e0 100644
--- a/examples/l2fwd-crypto/main.c
+++ b/examples/l2fwd-crypto/main.c
@@ -752,6 +752,8 @@ l2fwd_main_loop(struct l2fwd_crypto_options *options)
port_cparams[i].hash_verify = 0;
port_cparams[i].auth_algo = options->auth_xform.auth.algo;
+ port_cparams[i].digest_length =
+ options->auth_xform.auth.digest_length;
/* Set IV parameters */
if (options->auth_iv.length) {
options->auth_xform.auth.iv.offset =