Skip to content

Commit 7216908

Browse files
pablodelaraThomas Monjalon
authored andcommitted
examples/l2fwd-crypto: fix auth params setting
Fixes: 387259b ("examples/l2fwd-crypto: add sample application") Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Declan Doherty <declan.doherty@intel.com>
1 parent 3b98cba commit 7216908

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/l2fwd-crypto/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ parse_auth_op(enum rte_crypto_auth_operation *op, char *optarg)
793793
*op = RTE_CRYPTO_AUTH_OP_VERIFY;
794794
return 0;
795795
} else if (strcmp("GENERATE", optarg) == 0) {
796-
*op = RTE_CRYPTO_AUTH_OP_VERIFY;
796+
*op = RTE_CRYPTO_AUTH_OP_GENERATE;
797797
return 0;
798798
}
799799

@@ -831,11 +831,11 @@ l2fwd_crypto_parse_args_long_options(struct l2fwd_crypto_options *options,
831831

832832
/* Authentication options */
833833
else if (strcmp(lgopts[option_index].name, "auth_algo") == 0)
834-
return parse_auth_algo(&options->cipher_xform.auth.algo,
834+
return parse_auth_algo(&options->auth_xform.auth.algo,
835835
optarg);
836836

837837
else if (strcmp(lgopts[option_index].name, "auth_op") == 0)
838-
return parse_auth_op(&options->cipher_xform.auth.op,
838+
return parse_auth_op(&options->auth_xform.auth.op,
839839
optarg);
840840

841841
else if (strcmp(lgopts[option_index].name, "auth_key") == 0)

0 commit comments

Comments
 (0)