summaryrefslogtreecommitdiff
path: root/examples/l2fwd-crypto
diff options
context:
space:
mode:
authorHemant Agrawal <hemant.agrawal@nxp.com>2018-04-11 14:45:47 +0530
committerPablo de Lara <pablo.de.lara.guarch@intel.com>2018-04-23 18:20:09 +0100
commitd2c4b7d365d6c680d77d1fe7aa399c9d64514127 (patch)
tree8de557d0da0ea605fc081bc98c6674209941ee7f /examples/l2fwd-crypto
parentc3b894155f7698c1e5a0a796527258f38e07179a (diff)
downloaddpdk-d2c4b7d365d6c680d77d1fe7aa399c9d64514127.zip
dpdk-d2c4b7d365d6c680d77d1fe7aa399c9d64514127.tar.gz
dpdk-d2c4b7d365d6c680d77d1fe7aa399c9d64514127.tar.xz
examples/l2fwd-crypto: fix the default aead assignments
The code is incorrectly updating the authxform instead of aead xforms. Fixes: b79e4c00af0e ("cryptodev: use AES-GCM/CCM as AEAD algorithms") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com> Acked-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 4220448..f4e3e0b 100644
--- a/examples/l2fwd-crypto/main.c
+++ b/examples/l2fwd-crypto/main.c
@@ -1474,8 +1474,8 @@ l2fwd_crypto_default_options(struct l2fwd_crypto_options *options)
options->aead_iv_random_size = -1;
options->aead_iv.length = 0;
- options->auth_xform.aead.algo = RTE_CRYPTO_AEAD_AES_GCM;
- options->auth_xform.aead.op = RTE_CRYPTO_AEAD_OP_ENCRYPT;
+ options->aead_xform.aead.algo = RTE_CRYPTO_AEAD_AES_GCM;
+ options->aead_xform.aead.op = RTE_CRYPTO_AEAD_OP_ENCRYPT;
options->aad_param = 0;
options->aad_random_size = -1;