From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E35D4A0093 for ; Thu, 21 Apr 2022 14:01:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD48340040; Thu, 21 Apr 2022 14:01:23 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2075.outbound.protection.outlook.com [40.107.20.75]) by mails.dpdk.org (Postfix) with ESMTP id 3C21940040 for ; Thu, 21 Apr 2022 14:01:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lqVWnsaX1JqR6XiC4crXg40OKeQ4hC1swZhh4YzhgMJoGfcdoeQO8lEjyULDDAuUnyU0ziOOR34yhDwCIzx3ZcHW4MBI25Q53SqzFmo8/emxc5lD/dvTyHGFWPnN63/ryjGKNhtm/JjCa61BK09Ip/zwmIUtlzn7o9vAB912KSiYhbex96yLiy0/vU5+YV5ldvge6pD5AbOiXdb36cFmK8RWmYNB3kYtDNUAJgRT/kmSnxkVVeU7foN67+mwowjU4ha8STFpkDzciq1c/gtL4dTGI7Id8btOfhJkm3zTcFJcvVM+ns0+QBDdXvkr9dTHqnsTVjsvX8raXJrHXpFSQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wm4MqYHQ13WXf9cic0s4/D2IdwnCJpvr+gEJrMSIMg4=; b=MHwTuKolleXwwofy8Afu9YtD+LR93NIAqUDYCTFoyAp1c+OmETPGQC64gHbUDgfvATMgQlvquQr1Uf9fMF6TdxnW2UYCfPnoKYQlOrByXbEAVT8YiIe6X86AqZttEAALO/KgfaLFo6L6uwbjygNelXVCm6qQBf0mCktZJXBhKbG5tdf4ub9Ks642ozGo4Ieeixbs5Q+QI1GPFToTl0lZRc9BMZtGAk7B5saw+V17Fu4BvTNNsHjPv9nKSSF62ZM81EeZBNrxp9u/ziblWAtn2GMOkmr6IU4qQfjjIssBBMfszkOjBUIAsemobDbJcYcA8W1pYt8794NKeQ9RBYabbA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wm4MqYHQ13WXf9cic0s4/D2IdwnCJpvr+gEJrMSIMg4=; b=ohk4tAxeIZWE5nNykFIO0FyCRewdRpQlYQmCViGde36Xmev/eWreLzjWDPNLZjjW2kkONe1zMYH/wbjy6WEDC6BeV7kbMoOkOMbgiv4dRARNtkE3gKtCWyhcasyFpGWbSunhm/vR4JljF7RSnd+43qOuSlt8OspJBYEcvsuOPy8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) by AS8PR04MB7816.eurprd04.prod.outlook.com (2603:10a6:20b:2a3::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14; Thu, 21 Apr 2022 12:01:21 +0000 Received: from AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::8cf1:93b:c340:3be2]) by AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::8cf1:93b:c340:3be2%7]) with mapi id 15.20.5186.014; Thu, 21 Apr 2022 12:01:18 +0000 From: Gagandeep Singh To: dpdk-up@NXP1.onmicrosoft.com Cc: Gagandeep Singh , stable@dpdk.org Subject: [PATCH 12/15] crypto/dpaa2_sec: fix operation status for simple fd Date: Thu, 21 Apr 2022 17:30:40 +0530 Message-Id: <20220421120043.2565227-12-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220421120043.2565227-1-g.singh@nxp.com> References: <20220421120043.2565227-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR04CA0167.apcprd04.prod.outlook.com (2603:1096:4::29) To AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0afa8d09-8801-43db-eebe-08da238ea4b5 X-MS-TrafficTypeDiagnostic: AS8PR04MB7816:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0UFqRG887AgcpgcP4dh88ZBB2y/qy+nSymLMZT/lOwKEctnhOkPDoNiiws3w4ZmvHjPGAOUvsAiZObGvhswRGJTx4G8tCG4A3IuXPiA36e20gMwgIxEz7OB9bBJIYNuRrCHIsF+4WN3xQNxKdFN8gDZtjttu+r8L3kUiGsJBBF6idnNFMFxPjRx/sd4i4M/Zs2CEh0MAeXJtZhevj/4OQJq50s9wijZalV1wuqwwdUzJKmCWplWA2QR/KEt6xStjn8BzkC50qaDmIqfbI1cxK6rP6Y7EBnj3LFnbgK7xPYfdA8XCA5C79qCSzBdwnHFpQ69UeoHij9jTXDp7e5M6HkJe+yxsO5BvrY4yZ9E4V1xE/bZxUCV9dYKLXsAwUFkeNPR2LbggxiL2YBpgCVqq5NczLDB8/L5IJFqhORqkQjq47H6unslIMvC0USMV8MDM3wPU+Rf1V8h6kbchJFcev3SFNBXeT3T1V7w6w8DIx01ViCQ2gAp3TuMBZiYjLEm5gDKIAQad6PohpQT1+5xxAGDEdUU870yagD23uc7MiZgA9Srw1uqm8yHDx6QUcpG5qC17skLxzygpVPwLmc7+OWsyaQbRml6hVeVjPbbVPc8uFTDIN15XfLREQJ+MgloOI4f9fxR1I8gSN2MF2a2T7WBzm0MIdip4YHNj7U4vR13m15v8vpjICFLAPXu9CqertUSngE4rXjau2kpqemicUA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8198.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(26005)(2616005)(2906002)(186003)(1076003)(66556008)(66476007)(4744005)(38100700002)(6486002)(86362001)(34206002)(66946007)(4326008)(38350700002)(52116002)(8936002)(316002)(36756003)(6666004)(5660300002)(6512007)(8676002)(55236004)(6506007)(508600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?CbVTUqoviOyBgkBS3gmeadHWlYiYL1RjI63VX8zAvQZUKO9uzYBNEciUSJye?= =?us-ascii?Q?1zeVGkcBfaMxYoOs0273GlwXrPoLQ/ZG0c7Ehh7oF4nVORbH99oNtqHOrZJY?= =?us-ascii?Q?G29CUguCBuEtMf+Lsi4lmoQ2fJ5L4uDLHqeIG49ieS0+wTYlrE5Q8wWdFCjD?= =?us-ascii?Q?eeA33XkiH/UcX27pMaHNRk3JvWS6xn/JvMWQ5E2c0KV3y6vHVzDHBCrCPMsc?= =?us-ascii?Q?fpG/6t47eBokDlKLL+A/HlKCQ7PT7XrIMqyD1zP8NB4jUNlm4LWl01UVOmrT?= =?us-ascii?Q?rtGaCkUNFRvIlYcoFtgqcm/LWF7a53yGcfxryvOb0yEkM7mTTnhtwqyt5eAW?= =?us-ascii?Q?r/Dm38ZT4fQuadM3IHGWeLOOQd66FYM3ZBcyYHaOkV+RMlX7Yp649/G6W0Uo?= =?us-ascii?Q?mmqrIvwYk+b33bmVFLB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Q?AbuDDKKDnEdNIlw2TnVbnH5Z8wN47YwHd87xREl0YtAkQCm3e4ISWSM3yk8w?= =?us-ascii?Q?0vXd6qjpOyboX8ShdySjqRCNm+3MFkdFC1wS4aXn2uaoBxa/eRBiRy9eMlCF?= =?us-ascii?Q?eyE9QTF9p0Fc+NdelKb/fZ0NLzB0qiaLYcOHTLVDsk+7Pi0Txi+SRYgtBabV?= =?us-ascii?Q?KFZR3aPCUC8Cd0cpE2IVNe5MlFDLVn7HPifdebAtrmykAk1lfUick19ccFII?= =?us-ascii?Q?zpdiM+biqOxUsYDbEw00b7+OdBlViVbEBokj/NdTgHRz197Uef/6gCmY+kJm?= =?us-ascii?Q?5N6SQYSQMHGneTT43GWVLjIy+LAtmnUB1UtjeQoTepGvVwZt3d3D8iehFmou?= =?us-ascii?Q?CNTJJ63mrv7ajtS7sFfdmP9R4xNTM0PPINAl2ssFNUuTEiG8Vx/lkMDAD5Sx?= =?us-ascii?Q?uFfTzWcuJQ=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0afa8d09-8801-43db-eebe-08da238ea4b5 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8198.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2022 12:01:18.6747 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rs26D+it2hVfXMury11guR0CGkS7Lqlbk7QrEk94Ofrw0t0KOt/Irs037ISRBPUU X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7816 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 Driver is not filling the operation status on dequeue in case the FD is simple. So setting the status as per the results. Fixes: 0a23d4b6f4c2 ("crypto/dpaa2_sec: support protocol offload IPsec") Cc: stable@dpdk.org Signed-off-by: Gagandeep Singh --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 9f2b384af9..8444f1a795 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -1591,6 +1591,14 @@ sec_simple_fd_to_mbuf(const struct qbman_fd *fd) else mbuf->data_off += SEC_FLC_DHR_INBOUND; + if (unlikely(fd->simple.frc)) { + DPAA2_SEC_ERR("SEC returned Error - %x", + fd->simple.frc); + op->status = RTE_CRYPTO_OP_STATUS_ERROR; + } else { + op->status = RTE_CRYPTO_OP_STATUS_SUCCESS; + } + return op; } #endif -- 2.25.1