From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 833B81B108 for ; Wed, 21 Nov 2018 17:06:54 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D824730832E5; Wed, 21 Nov 2018 16:06:53 +0000 (UTC) Received: from ktraynor.remote.csb (unknown [10.36.118.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id AE5B7608E7; Wed, 21 Nov 2018 16:06:52 +0000 (UTC) From: Kevin Traynor To: Anoob Joseph Cc: Akash Saxena , Akhil Goyal , dpdk stable Date: Wed, 21 Nov 2018 16:04:34 +0000 Message-Id: <20181121160440.9014-44-ktraynor@redhat.com> In-Reply-To: <20181121160440.9014-1-ktraynor@redhat.com> References: <20181121160440.9014-1-ktraynor@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Wed, 21 Nov 2018 16:06:53 +0000 (UTC) Subject: [dpdk-stable] patch 'app/test-crypto-perf: fix check for cipher IV' has been queued to stable release 18.08.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2018 16:06:55 -0000 Hi, FYI, your patch has been queued to stable release 18.08.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/26/18. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. If the code is different (ie: not only metadata diffs), due for example to a change in context or macro names, please double check it. Thanks. Kevin Traynor --- >>From 6194da2c033927d5fe1ac5f54759721c02f14b11 Mon Sep 17 00:00:00 2001 From: Anoob Joseph Date: Fri, 14 Sep 2018 14:54:48 +0530 Subject: [PATCH] app/test-crypto-perf: fix check for cipher IV [ upstream commit 3c78812b5082146f23af45784a04c37be9b90190 ] IV is not required for all ciphers. Making sure the null check is done only when 'cipher_iv_sz' is non-zero. Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") Signed-off-by: Akash Saxena Signed-off-by: Anoob Joseph Acked-by: Akhil Goyal --- app/test-crypto-perf/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c index b1e91f14e..2b6f5fbed 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -343,5 +343,7 @@ cperf_check_test_vector(struct cperf_options *opts, if (test_vec->ciphertext.length < opts->max_buffer_size) return -1; - if (test_vec->cipher_iv.data == NULL) + /* Cipher IV is only required for some algorithms */ + if (opts->cipher_iv_sz && + test_vec->cipher_iv.data == NULL) return -1; if (test_vec->cipher_iv.length != opts->cipher_iv_sz) -- 2.19.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2018-11-21 15:59:14.728520645 +0000 +++ 0044-app-test-crypto-perf-fix-check-for-cipher-IV.patch 2018-11-21 15:59:13.000000000 +0000 @@ -1,13 +1,14 @@ -From 3c78812b5082146f23af45784a04c37be9b90190 Mon Sep 17 00:00:00 2001 +From 6194da2c033927d5fe1ac5f54759721c02f14b11 Mon Sep 17 00:00:00 2001 From: Anoob Joseph Date: Fri, 14 Sep 2018 14:54:48 +0530 Subject: [PATCH] app/test-crypto-perf: fix check for cipher IV +[ upstream commit 3c78812b5082146f23af45784a04c37be9b90190 ] + IV is not required for all ciphers. Making sure the null check is done only when 'cipher_iv_sz' is non-zero. Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application") -Cc: stable@dpdk.org Signed-off-by: Akash Saxena Signed-off-by: Anoob Joseph @@ -17,7 +18,7 @@ 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c -index 55d97c26b..953e058c9 100644 +index b1e91f14e..2b6f5fbed 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -343,5 +343,7 @@ cperf_check_test_vector(struct cperf_options *opts,