summaryrefslogtreecommitdiff
path: root/examples/l2fwd-crypto
diff options
context:
space:
mode:
authorPablo de Lara <pablo.de.lara.guarch@intel.com>2017-07-18 08:58:18 +0100
committerPablo de Lara <pablo.de.lara.guarch@intel.com>2017-07-19 14:10:41 +0300
commit459369fc956d18e53a7cd13b1180d1a07bb420e5 (patch)
treebb1eeb57e9e0f031867194b042dd89e51e7830eb /examples/l2fwd-crypto
parentef896e92176498a03aa50cf92c1533acb701a210 (diff)
downloaddpdk-459369fc956d18e53a7cd13b1180d1a07bb420e5.zip
dpdk-459369fc956d18e53a7cd13b1180d1a07bb420e5.tar.gz
dpdk-459369fc956d18e53a7cd13b1180d1a07bb420e5.tar.xz
examples/l2fwd-crypto: fix AEAD key setting
AEAD key was being set using the cipher key parameters, instead of the AEAD key parameters. Fixes: 2661f4fbe93d ("examples/l2fwd-crypto: add AEAD parameters") 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c
index da2f509..8d4a10a 100644
--- a/examples/l2fwd-crypto/main.c
+++ b/examples/l2fwd-crypto/main.c
@@ -2038,7 +2038,7 @@ initialize_cryptodevs(struct l2fwd_crypto_options *options, unsigned nb_ports,
* is supported by the algorithm chosen.
*/
} else if (options->aead_key_random_size != -1) {
- if (check_supported_size(options->ckey_random_size,
+ if (check_supported_size(options->aead_key_random_size,
cap->sym.aead.key_size.min,
cap->sym.aead.key_size.max,
cap->sym.aead.key_size.increment)
@@ -2047,7 +2047,7 @@ initialize_cryptodevs(struct l2fwd_crypto_options *options, unsigned nb_ports,
return -1;
}
options->aead_xform.aead.key.length =
- options->ckey_random_size;
+ options->aead_key_random_size;
/* No size provided, use minimum size. */
} else
options->aead_xform.aead.key.length =