From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo de Lara Subject: [PATCH v2 3/3] l2fwd-crypto: add NULL in cipher/auth algo list Date: Tue, 22 Mar 2016 21:24:01 +0000 Message-ID: <1458681841-245648-4-git-send-email-pablo.de.lara.guarch@intel.com> References: <1458652644-30754-1-git-send-email-pablo.de.lara.guarch@intel.com> <1458681841-245648-1-git-send-email-pablo.de.lara.guarch@intel.com> Cc: declan.doherty@intel.com, Pablo de Lara To: dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 106EA5596 for ; Tue, 22 Mar 2016 22:24:28 +0100 (CET) In-Reply-To: <1458681841-245648-1-git-send-email-pablo.de.lara.guarch@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" NULL crypto operation is now supported, but l2fwd-crypto was missing an update on the list of supported algorithms that can be passed from command line. Signed-off-by: Pablo de Lara --- examples/l2fwd-crypto/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index f8713e4..cb3bdbe 100644 --- a/examples/l2fwd-crypto/main.c +++ b/examples/l2fwd-crypto/main.c @@ -859,6 +859,9 @@ parse_cipher_algo(enum rte_crypto_cipher_algorithm *algo, char *optarg) } else if (strcmp("AES_GCM", optarg) == 0) { *algo = RTE_CRYPTO_CIPHER_AES_GCM; return 0; + } else if (strcmp("NULL", optarg) == 0) { + *algo = RTE_CRYPTO_CIPHER_NULL; + return 0; } else if (strcmp("SNOW3G_UEA2", optarg) == 0) { *algo = RTE_CRYPTO_CIPHER_SNOW3G_UEA2; return 0; @@ -916,6 +919,9 @@ parse_auth_algo(enum rte_crypto_auth_algorithm *algo, char *optarg) } else if (strcmp("MD5_HMAC", optarg) == 0) { *algo = RTE_CRYPTO_AUTH_MD5_HMAC; return 0; + } else if (strcmp("NULL", optarg) == 0) { + *algo = RTE_CRYPTO_AUTH_NULL; + return 0; } else if (strcmp("SHA1_HMAC", optarg) == 0) { *algo = RTE_CRYPTO_AUTH_SHA1_HMAC; return 0; -- 2.5.0