From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8D2B0A0524 for ; Fri, 8 Jan 2021 09:41:14 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6E878140E92; Fri, 8 Jan 2021 09:41:14 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 58D12140E92; Fri, 8 Jan 2021 09:41:13 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1088Yn0p018650; Fri, 8 Jan 2021 00:41:12 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=EywGEU2/MBSYu+YV4tpuQ0RLTAD3leDwDOBHZxQeZME=; b=J4vVCKsv5HMKavS6zId1G2x8W69CCjy+u2KcW9L2dGCMc3yWIVflJTmR6Kj7+F6CCUmI B7n3HCedzMLRb0i9hHsYhZ2k3IHY58xO30KkayXavSTzFX6rrSqwbn8CbFbphqsFnahm kmn2LJ1Ni6nFx545uTNks/grSbtEkXGR93TadDjxL1SzWASlLdNvr+XfAQn/K8g7KgEB aFk3g1nwpF0n8o6cF6NcOJvMDQi5+SV8NHQcwULZYbzvzCJmpPOFflIAuDPABXpfB54J pGiOTtSnlqiBWFnokaIUdcfgrfPJlkjMKykdwsv3DUy0tl9j4a7pP8qe+ApPDKJt9VX0 AQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 35wqq7chw9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 08 Jan 2021 00:41:12 -0800 Received: from SC-EXCH01.marvell.com (10.93.176.81) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 8 Jan 2021 00:41:11 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 8 Jan 2021 00:41:10 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 8 Jan 2021 00:41:10 -0800 Received: from hyd1349.t110.caveonetworks.com.com (unknown [10.29.45.13]) by maili.marvell.com (Postfix) with ESMTP id 66B8E3F703F; Fri, 8 Jan 2021 00:41:08 -0800 (PST) From: Ankur Dwivedi To: CC: , , , , Ankur Dwivedi Date: Fri, 8 Jan 2021 14:10:51 +0530 Message-ID: <20210108084051.25429-1-adwivedi@marvell.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737 definitions=2021-01-08_06:2021-01-07, 2021-01-08 signatures=0 Subject: [dpdk-stable] [PATCH] test/event_crypto_adapter: set cipher operation in transform X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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" The cipher operation in the transform should be set to encrypt. Fixes: 74449375237f ("test/event_crypto_adapter: fix configuration") Signed-off-by: Ankur Dwivedi --- app/test/test_event_crypto_adapter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c index a0169aa6cf..335211cd8c 100644 --- a/app/test/test_event_crypto_adapter.c +++ b/app/test/test_event_crypto_adapter.c @@ -183,6 +183,7 @@ test_op_forward_mode(uint8_t session_less) cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER; cipher_xform.next = NULL; cipher_xform.cipher.algo = RTE_CRYPTO_CIPHER_NULL; + cipher_xform.cipher.op = RTE_CRYPTO_CIPHER_OP_ENCRYPT; op = rte_crypto_op_alloc(params.op_mpool, RTE_CRYPTO_OP_TYPE_SYMMETRIC); @@ -382,6 +383,7 @@ test_op_new_mode(uint8_t session_less) cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER; cipher_xform.next = NULL; cipher_xform.cipher.algo = RTE_CRYPTO_CIPHER_NULL; + cipher_xform.cipher.op = RTE_CRYPTO_CIPHER_OP_ENCRYPT; op = rte_crypto_op_alloc(params.op_mpool, RTE_CRYPTO_OP_TYPE_SYMMETRIC); -- 2.28.0