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 5988AA034C for ; Thu, 28 Apr 2022 13:48:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3008442830; Thu, 28 Apr 2022 13:48:23 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60043.outbound.protection.outlook.com [40.107.6.43]) by mails.dpdk.org (Postfix) with ESMTP id 3DC8942850; Thu, 28 Apr 2022 13:48:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oVquCDtQrv4L5iIu/4MpqJiflPGMlwWAV51EBdfFeabpRnzplvCybmrzliacUE2TV67w+lCUd4wv2vlSLwyW0TPS5Zm+wECUm+BCdaecQsmuCiVx9vOvn84o3tAAx9k9PUsPiE2ugFb3MT8iUGiTgLn8mUqrhEg5V9CZT4v2+CQ0JUaD9YIB8qYI65I1Jtb7opd4m1HmxdHTf0oI5APsFbYHjPvIoUq1rCZ+WZaGYRqxE4A/Pq/wOQtVlqindJg86nL5HcZ0SphrXPX+pqF4dbIuxFzj7xVlGVb8lvdTEr3OJJjL/1RCp8xlUySNrXOmAlWQyO08Yh2WvlTsJf5Q0g== 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=IJY9Q8Psl9qiRe+vXEoDomyBrBzNIUo3Ukb6f9fY074pCv9zC82C7drfcVyxYGgQPyVTTudPil3IrsU8ri/YuHeMNP91kwHC53fG5NILGIE5OUfVbeQ2GpByd0JN+WjDFc8+xrnoGH1+teHNkjVxEC7Op1oZhXAh8PnzdLLMApk/eMf1Bb1m/Rm83RiSKBrQqjLMVQGcJO4m6fRKJglS/xe6cu+XsfJR2TmyrEDQrn0txyzMow3PJfjH5GRnZ2fWEREPpp3rhWU/ymos86rDYwq2Msv1eMxOh0noBww+g16D3WXwiX6XaKYmn1NskJoF3tGwwri/dTYra51mUGGiYw== 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=aC4knrZgQbH3wqe+V+jXgO1mG2fD5ex6H2gx3KeIhS5nJ4fbH7DvO2LFkyvivoQBmxlcUVpbFK9x7RKdbfhhHq2P3Tg0Ji91pFS58D/sPbMFu5SeA/IE015K2uIPtzv2sHSbOvzYBZU+E8Ce0wsSDSBwl3XowHpEm3Ssl0XhVKM= 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 AM9PR04MB8162.eurprd04.prod.outlook.com (2603:10a6:20b:3e3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.13; Thu, 28 Apr 2022 11:48:20 +0000 Received: from AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::8cf1:93b:c340:3be2]) by AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::8cf1:93b:c340:3be2%9]) with mapi id 15.20.5206.014; Thu, 28 Apr 2022 11:48:20 +0000 From: Gagandeep Singh To: gakhil@marvell.com, dev@dpdk.org Cc: Gagandeep Singh , stable@dpdk.org Subject: [PATCH v2 11/14] crypto/dpaa2_sec: fix operation status for simple FD Date: Thu, 28 Apr 2022 17:17:30 +0530 Message-Id: <20220428114733.1419957-12-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220428114733.1419957-1-g.singh@nxp.com> References: <20220422035100.3180870-1-g.singh@nxp.com> <20220428114733.1419957-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0002.apcprd02.prod.outlook.com (2603:1096:4:194::22) 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: 85f192e3-f346-419d-7633-08da290cfdb6 X-MS-TrafficTypeDiagnostic: AM9PR04MB8162: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: EAR+k7r3QbewPuy29jFYCeMbB9xV3N+3zJ02Lj88uQt04ED3b1brOBReJ+Y32y+7opC59eH3u7HUVEcGuXodJRn3qxzC2d67Yw2FpbrcDWtekmcbIt6baanBDdsug706NeuTtN9TbPsKufaC51VPwMg1qNXgZAfQzyIlYa6aFINjmKuTi1VzKVu/tXgCRgSPvUEYKJclhcXpLOWGUeBKj9kcUykiiyWcO4grQxoP8hZDxIJnGQDKJvMe+VAAMCgGUgRSmLsoObzfe68hFrGA1qU0YGxEzDE40LbP52r8ecAbpgNXLsDT1hzSq71ASab3b5C91hHnfo5KyqQQopjoGDW2nFoCUu/4TDqgKjwBO5FUbYOymfSxMhtkvFXJk1zwaguWJa5HPw3ck9mnMex12aaHZ4gTQ5ABj5PWOAGQKXo8Ud/OrVXAamENv7+swftrziomdC1y9DV320fRkvGJXVaCVcviC8zQ6cw6h9es2ZPc8Eu6CFlxFBNeZY1kKj3orAHdmCknQO/eafAi+0NqXqle7Lkgbo/9a61COeiuBbpc0M8YQXgCzjRFqOT9BxhJKHwpFcRCAwtCVhQ8qE7YjVC+s84DvkRJIT9XjDT+SzEqBlYeEk0CMhJymK6B00sKh/VCPumCd2Z2/fdpiqHsOvLdoG/cQ4d7p23su3bWiUiSyebBTXCKAycVsf3ToLcb/vQS65sazefJTS+E30A+g6kUGaYUg+sHZ+/a8KIbQExrsdV2nZP9BdhHs/z4+WPI 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)(6486002)(508600001)(8676002)(4326008)(66476007)(66556008)(86362001)(66946007)(316002)(55236004)(2906002)(38100700002)(6512007)(4744005)(38350700002)(26005)(6666004)(6506007)(52116002)(5660300002)(2616005)(1076003)(186003)(8936002)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?RX74OlGUmgMlLgQ8SHYLH4fTieAEBvp6H+BPtwc0CelMOwIMCM5svqMwQsLu?= =?us-ascii?Q?5YhC+JjWgrMIfsG6Le79ODZcyTMVLmDOEsoWdmi4iwUpGdPTnhAnG92pZyVj?= =?us-ascii?Q?yVKDUnre2Os4VwMJuPnT88aTjoeI2DLEFSOQQvtKEsREHUq5BtRBuBZYDopV?= =?us-ascii?Q?Q+94ZzkTOVmEUuYh9xRJdnLyGoLUH18/HR3qw4b/2Ck53ebz2rJekd/53huG?= =?us-ascii?Q?sPBtgjzmGwkautoiUNH9sO8nxWWYkBATahSvHOONH/r5qRiRywppM0/5I6Rz?= =?us-ascii?Q?crLPvCdrT800VSRQ3TA4NkCGc6B0JaiTkc5Yb4ZZmb5ufyc1wLaOIqnDBR+8?= =?us-ascii?Q?Z7H2d1XJDsIPw4RxLqATUCxXbl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FXxgy9KRjxJlhCBBGuqwj7b8wBFqrdD84BP2ifTE4bxLEbWd1WeLQgW2Jy?= =?us-ascii?Q?EQ6OIPin7ur7YvNNhjMx50cKI7QrVcWeOZupPh3jFyXCOXsb6Msz6PDBU2Bk?= =?us-ascii?Q?ehT8MUpB1W8RR5iT62RJ03PFGFn9mVh45ZOaoN3tVCrNLgmrNCDWN09FGMs5?= =?us-ascii?Q?n6FhOC7fHmKcy0YOGgk6A00WvAPHCPejOg01vtxXiOfNvsH/P4ZUAANiUEgU?= =?us-ascii?Q?7Hc2YYA2RGMqs2dEFXa10mQIIhUpms2wjr4/YjbVTF+01vicXEdDTeaNywh6?= =?us-ascii?Q?yQF2G/4WLJDq7H/I3mtbXOFTeMWm38q4pn7aM7w0+Jkz6WImYCxLMP2beyfT?= =?us-ascii?Q?ltPsEdr1klei0gkUYrCXRE34HD+bIdh2PROo22lH06rjoUnykv2z1wauevgi?= =?us-ascii?Q?Gxx/5ZZuwZYW9GUUPo2gu9b2auFY2KpdLrLIC+7eK9IMVcv2r+SftIzh73tg?= =?us-ascii?Q?YEmBTKkCPw=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 85f192e3-f346-419d-7633-08da290cfdb6 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8198.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2022 11:48:20.3348 (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: guC1BcCYQstzNCU4vMOJxiR0O3sac/KC7s0hyJShOBEuVJ1nIT1bxVEP5qMPh5RA X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8162 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