From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 48C4EA04F5 for ; Wed, 11 Dec 2019 22:29:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 41205374C; Wed, 11 Dec 2019 22:29:13 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id B0A781D9E for ; Wed, 11 Dec 2019 22:29:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576099751; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HvHvtyPWjauz9p3hGc6h7sfBJaiJ7M68Hk/6k8f9wD0=; b=iYwYwOX5w6HERoN5lzoaWa5d5kR2wH8FycgaEsfqbBCd9Bvs2Do2+eQLIA0Kz2JD9mei5M gLFTosHPrOrdW5tDa0feQRqhPZuxqbT9pFCGtFmne8JEGklXCNLbVoERWuq3IeLrj4G91u QQTvJczKCreHLIqvsL/G81ZMaSgJevo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-100-SJYicDmCMsKG2oN6HHRIeg-1; Wed, 11 Dec 2019 16:29:03 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F00DE800D53; Wed, 11 Dec 2019 21:29:01 +0000 (UTC) Received: from rh.redhat.com (ovpn-116-64.ams2.redhat.com [10.36.116.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id CAAFF10016DA; Wed, 11 Dec 2019 21:29:00 +0000 (UTC) From: Kevin Traynor To: Archana Muniganti Cc: Anoob Joseph , Akhil Goyal , dpdk stable Date: Wed, 11 Dec 2019 21:26:44 +0000 Message-Id: <20191211212702.27851-52-ktraynor@redhat.com> In-Reply-To: <20191211212702.27851-1-ktraynor@redhat.com> References: <20191211212702.27851-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-MC-Unique: SJYicDmCMsKG2oN6HHRIeg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] patch 'app/crypto-perf: fix input of AEAD decrypt' has been queued to LTS release 18.11.6 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to LTS release 18.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/17/19. 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. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasi= ng (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/f8b624a8af413ad072= 2410faa1184a6ecfe27f61 Thanks. Kevin. --- >From f8b624a8af413ad0722410faa1184a6ecfe27f61 Mon Sep 17 00:00:00 2001 From: Archana Muniganti Date: Thu, 21 Nov 2019 16:44:27 +0530 Subject: [PATCH] app/crypto-perf: fix input of AEAD decrypt [ upstream commit 7f9816b9b2589625cb4b0e98a3d770c44717d633 ] In AEAD decrypt (verify mode), test data should point to cipher text instead of plain text Fixes: 5b2b0a740fba ("app/crypto-perf: overwrite mbuf when verifying") Signed-off-by: Archana Muniganti Acked-by: Anoob Joseph Acked-by: Akhil Goyal --- app/test-crypto-perf/cperf_test_verify.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/test-crypto-perf/cperf_test_verify.c b/app/test-crypto-per= f/cperf_test_verify.c index 2f11b73a1..1e626d7f1 100644 --- a/app/test-crypto-perf/cperf_test_verify.c +++ b/app/test-crypto-perf/cperf_test_verify.c @@ -203,9 +203,17 @@ cperf_mbuf_set(struct rte_mbuf *mbuf, =09uint32_t segment_sz =3D options->segment_sz; =09uint8_t *mbuf_data; -=09uint8_t *test_data =3D -=09=09=09(options->cipher_op =3D=3D RTE_CRYPTO_CIPHER_OP_ENCRYPT) ? +=09uint8_t *test_data; +=09uint32_t remaining_bytes =3D options->max_buffer_size; + +=09if (options->op_type =3D=3D CPERF_AEAD) { +=09=09test_data =3D (options->aead_op =3D=3D RTE_CRYPTO_AEAD_OP_ENCRYPT) ? =09=09=09=09=09test_vector->plaintext.data : =09=09=09=09=09test_vector->ciphertext.data; -=09uint32_t remaining_bytes =3D options->max_buffer_size; +=09} else { +=09=09test_data =3D +=09=09=09(options->cipher_op =3D=3D RTE_CRYPTO_CIPHER_OP_ENCRYPT) ? +=09=09=09=09test_vector->plaintext.data : +=09=09=09=09test_vector->ciphertext.data; +=09} =20 =09while (remaining_bytes) { --=20 2.21.0 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- -=092019-12-11 21:24:16.801571116 +0000 +++ 0052-app-crypto-perf-fix-input-of-AEAD-decrypt.patch=092019-12-11 21:24= :12.711650308 +0000 @@ -1 +1 @@ -From 7f9816b9b2589625cb4b0e98a3d770c44717d633 Mon Sep 17 00:00:00 2001 +From f8b624a8af413ad0722410faa1184a6ecfe27f61 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 7f9816b9b2589625cb4b0e98a3d770c44717d633 ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -20 +21 @@ -index bbdf37d05..833bc9a55 100644 +index 2f11b73a1..1e626d7f1 100644 @@ -23 +24 @@ -@@ -204,9 +204,17 @@ cperf_mbuf_set(struct rte_mbuf *mbuf, +@@ -203,9 +203,17 @@ cperf_mbuf_set(struct rte_mbuf *mbuf,