From patchwork Mon Jan 18 16:19:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Dwivedi X-Patchwork-Id: 86819 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 905C2A0A04; Mon, 18 Jan 2021 17:20:06 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F0F8140D43; Mon, 18 Jan 2021 17:20:06 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id C9A3B140CE6; Mon, 18 Jan 2021 17:20:04 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 10IGAEmp004663; Mon, 18 Jan 2021 08:20:04 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=cYs4ud5eAXw/Yxz+xmTBYF51EDE/LFaa97TVcl7uMsw=; b=V+ZtEyBlwoUCTU5+eLCbpMZ2Wtt9LHXmbnS/xJmwtj2phDxIIpzvY4+vLjbmRHYDONsA diSf/9fS/BnfWPCVqt0/rT5P/b+r5DCxadAddyeVZHbCAjX4Jk6WwgV2uUOOVCKiTNO3 SaSXO2ajhhrJztYh6S/B2hS18Hvzi3VfspHcB03vHOl/TylkW0kxAukcWwoeBdAq/cnv CHW2O2WGNvYYYilV8jm6CvwU55mOwW52ybWaqdX+GLZWHQ123Uw2W4SA6eOotbfn0LW+ J7Fp4ytGJoom0ZzxvZg/lZXoe50kD/wemt1AUB1hHNrEnoOsp9UyY1URuLKdvfBoNPf+ uQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 3640hsuww4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 18 Jan 2021 08:20:04 -0800 Received: from SC-EXCH02.marvell.com (10.93.176.82) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 18 Jan 2021 08:20:02 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 18 Jan 2021 08:20:01 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 18 Jan 2021 08:20:01 -0800 Received: from hyd1349.t110.caveonetworks.com.com (unknown [10.29.45.13]) by maili.marvell.com (Postfix) with ESMTP id 91F593F7040; Mon, 18 Jan 2021 08:19:59 -0800 (PST) From: Ankur Dwivedi To: CC: , , , , , Ankur Dwivedi Date: Mon, 18 Jan 2021 21:49:40 +0530 Message-ID: <20210118161940.6872-1-adwivedi@marvell.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210108084051.25429-1-adwivedi@marvell.com> References: <20210108084051.25429-1-adwivedi@marvell.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737 definitions=2021-01-18_13:2021-01-18, 2021-01-18 signatures=0 Subject: [dpdk-dev] [PATCH v2] test/event_crypto_adapter: set cipher operation in transform X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The symmetric session configure callback function in OCTEON TX2 crypto PMD returns error if the cipher operation is not set to either encrypt or decrypt. This patch sets the cipher operation for the null cipher to encrypt. Fixes: 74449375237f ("test/event_crypto_adapter: fix configuration") Signed-off-by: Ankur Dwivedi Acked-by: abhinandan.gujjar@intel.com --- v2: * Updated the commit message with details. 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);