examples/l2fwd-crypto: fix the default aead assignments
The code is incorrectly updating the authxform instead of
aead xforms.
Fixes: b79e4c00af
("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>
This commit is contained in:
parent
c3b894155f
commit
d2c4b7d365
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user