From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 8A8DF95EF for ; Wed, 3 Feb 2016 12:13:43 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 03 Feb 2016 03:13:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,389,1449561600"; d="scan'208";a="739742212" Received: from sie-lab-212-116.ir.intel.com ([10.237.212.116]) by orsmga003.jf.intel.com with ESMTP; 03 Feb 2016 03:13:41 -0800 From: Pablo de Lara To: declan.doherty@intel.com Date: Wed, 3 Feb 2016 11:14:22 +0000 Message-Id: <1454498063-11957-4-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1454498063-11957-1-git-send-email-pablo.de.lara.guarch@intel.com> References: <1454498063-11957-1-git-send-email-pablo.de.lara.guarch@intel.com> Cc: dev@dpdk.org Subject: [dpdk-dev] [PATCH 3/4] l2fwd-crypto: fix auth params setting X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2016 11:13:43 -0000 Signed-off-by: Pablo de Lara --- examples/l2fwd-crypto/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index 37f59c4..17a7774 100644 --- a/examples/l2fwd-crypto/main.c +++ b/examples/l2fwd-crypto/main.c @@ -791,7 +791,7 @@ parse_auth_op(enum rte_crypto_auth_operation *op, char *optarg) *op = RTE_CRYPTO_AUTH_OP_VERIFY; return 0; } else if (strcmp("GENERATE", optarg) == 0) { - *op = RTE_CRYPTO_AUTH_OP_VERIFY; + *op = RTE_CRYPTO_AUTH_OP_GENERATE; return 0; } @@ -829,11 +829,11 @@ l2fwd_crypto_parse_args_long_options(struct l2fwd_crypto_options *options, /* Authentication options */ else if (strcmp(lgopts[option_index].name, "auth_algo") == 0) - return parse_auth_algo(&options->cipher_xform.auth.algo, + return parse_auth_algo(&options->auth_xform.auth.algo, optarg); else if (strcmp(lgopts[option_index].name, "auth_op") == 0) - return parse_auth_op(&options->cipher_xform.auth.op, + return parse_auth_op(&options->auth_xform.auth.op, optarg); else if (strcmp(lgopts[option_index].name, "auth_key") == 0) -- 2.5.0