From patchwork Tue Sep 26 05:58:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tejasree Kondoj X-Patchwork-Id: 131926 X-Patchwork-Delegate: gakhil@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 A267F4263D; Tue, 26 Sep 2023 07:59:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F1EB340DCA; Tue, 26 Sep 2023 07:59:12 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 06E2A402F0 for ; Tue, 26 Sep 2023 07:59:10 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38PJYTTq032212 for ; Mon, 25 Sep 2023 22:59:10 -0700 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=1QwVY7ktmP7VRQxgBO/c04s/2ve3vAV7aA3SaWf4uyI=; b=Y91cjzUhZhAAde3DpNTKFTR/jovp4y5jMjgcku817JCWgfdu0lRBK8n1mXTGlBFjaa8y XN8BMfS1jfuEVBMj63c0rICwgT5dEIQaaO3l3Tq/nmuJmcLKRoIi4zRMxXSdAmm7vint PIxHlEu5JRatHoBdPlrK5HLkfuqzC0uo3ofl36sV20wpdJqMl8d1pFHpvpQCPc5z8Z99 mzXeKeb3JVLdDc9sVB3bbv7ArrKVvXmTonFbf+0/ECrjxOSywusnvIpXqdkhHX5MtP8S F3GoxmsSzOoFzylsFcnnHQ8urQg481Wk3+Yb8VRTsiHVXkz/Bnbm/NTr+ew3CjjJMTlJ Ug== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3t9wcqr1up-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 25 Sep 2023 22:59:10 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 25 Sep 2023 22:59:08 -0700 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.48 via Frontend Transport; Mon, 25 Sep 2023 22:59:08 -0700 Received: from hyd1554.marvell.com (unknown [10.29.57.11]) by maili.marvell.com (Postfix) with ESMTP id 706693F7068; Mon, 25 Sep 2023 22:59:06 -0700 (PDT) From: Tejasree Kondoj To: Akhil Goyal CC: Vidya Sagar Velumuri , Anoob Joseph , Aakash Sasidharan , Gowrishankar Muthukrishnan , Subject: [PATCH v2 07/15] crypto/cnxk: check for sg version in SE engine capabilities Date: Tue, 26 Sep 2023 11:28:39 +0530 Message-ID: <20230926055847.2707473-8-ktejasree@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230926055847.2707473-1-ktejasree@marvell.com> References: <20230926055847.2707473-1-ktejasree@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: gKNj5sz5matXbX13BMFlhrtkQmY0LO-o X-Proofpoint-GUID: gKNj5sz5matXbX13BMFlhrtkQmY0LO-o X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-26_04,2023-09-25_01,2023-05-22_02 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 From: Vidya Sagar Velumuri Check for supported SG version in SE engine capabilities. Signed-off-by: Vidya Sagar Velumuri --- drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c index ac4a8c1572..fd91dec08f 100644 --- a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c +++ b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c @@ -1619,7 +1619,7 @@ static void cn10k_crypto_caps_add(struct rte_cryptodev_capabilities cnxk_caps[], union cpt_eng_caps *hw_caps, int *cur_pos) { - if (hw_caps->sg_ver2) { + if (hw_caps[CPT_ENG_TYPE_SE].sg_ver2) { CPT_CAPS_ADD(cnxk_caps, cur_pos, hw_caps, sm3); CPT_CAPS_ADD(cnxk_caps, cur_pos, hw_caps, sm4); }