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 885B9A0093; Fri, 22 Apr 2022 05:52:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6200A42832; Fri, 22 Apr 2022 05:51:56 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20078.outbound.protection.outlook.com [40.107.2.78]) by mails.dpdk.org (Postfix) with ESMTP id BC4C442828; Fri, 22 Apr 2022 05:51:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ccrvhHt4rLtRfWR5C1fomVnqIC0wvX50j4dqGZ5caTRE1/9hMSObDSMqhv+DykxriRggmybnV25x2mFfP4iEGFiPsFDKleR3zpsRM95oFD/ar8oFchV/j1HS6iTCm/CvVzVMpACu7hX888C5dFa9vmvSBJVXv0Ggk3vvldrubcGv32bHDtUZy+R/sVIgEUZXBlC/41CkwjAMk6RyC6n8JfVFOutRbGtZEmrGDJl82nLE6xhqVIMJA6FmFeRLN43Az9Ci4X4JX2uIrY9+mM1e6wv6EZi6F9CI7VC7/B38Wsy1NGDuZ1l8a0VlHYt4XMkRPcZy0dWja0E0TbovRidVvA== 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=Ue565Ckenj0sPM2XanYM6jJUZnW2n+U1/4OrWqJEac2x3f5A5q77g5c2UUpzmeicDaNVMvP1ziTqWoTOSBBWQ6GmYwoO9dcmlGQ80Yng6ypDmRIbG7VMrbEa+s/d0Uoyx9LzrurCKcofrMSasobuHcTBJ66AcwnibIH00HNimGfCUcnq7msSXbqWDI7NT6YYtQTHNgqPerR/SR0OKxIgG87oBCfp9efLpSCV3aM8YKZNAu9BWFnT8WNs4T1JR97++lm6PvzMvT/PDFVJflPlA1f7H0qnCOwCjLCQFxq5w6cF/26ErwGUnTkibmbhGsUo5ms/lCgXC5zXkPoxhSXh7g== 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=amfNS6GAxqIGxD0YYtv7j6iAHpfKoY923BGDLi9T5+6MBX8YPN9bm8AU9YZ8LjSgIlNlixxivF0Bgaz16rWkMogr7u79A6gUkJYmLaBpiILODoy9J38Kfacf/oLUPkqZsKyR3TSncfsPmoQ2yIdXXhtPGMHQtfbqFEqtaHoW9cY= 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 DB7PR04MB4393.eurprd04.prod.outlook.com (2603:10a6:5:32::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Fri, 22 Apr 2022 03:51:53 +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.015; Fri, 22 Apr 2022 03:51:53 +0000 From: Gagandeep Singh To: gakhil@marvell.com, dev@dpdk.org Cc: Gagandeep Singh , stable@dpdk.org Subject: [PATCH 11/14] crypto/dpaa2_sec: fix operation status for simple fd Date: Fri, 22 Apr 2022 09:20:57 +0530 Message-Id: <20220422035100.3180870-11-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220422035100.3180870-1-g.singh@nxp.com> References: <20220422035100.3180870-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR03CA0127.apcprd03.prod.outlook.com (2603:1096:4:91::31) 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: baf4ef8e-a7a6-43bd-89a7-08da24137048 X-MS-TrafficTypeDiagnostic: DB7PR04MB4393: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: mBj67kwkawt1+msGLDVcYCUqqB1H2+BNQ0MnDNxvDsLGe3JylmKjHmSaweHQUawFCfEP9Gis9KnltrysUYYux2fF+yd2eD3IFXTQhPf+nafP9OfvMWyaPakrQdveIeGhkGBq3rwtTfQ9zb2lBZOEZUFMQTENcCI/2DWGXIeIzKQzxByUN0cuVOO6ON/3W6dAtsjJPyErlb5pcaj6lxv2SYqUYpMrqUiZ9jlb/vE1RzMrKiClZwoFARIbK2Njz6uP/fXPcP0hiaBcsCvRHAH6I1X5HD7jHZZJ4IXmGoAIRahtA3O51lXW+Udg9P5lDIIpBCpyMMgmu6/0r7YOUwZbbY1K7yaml6GFGOjy48bfwE3kZWiMevilYpYoU4MXYsr3f/8lMMJPSf9Bz8XeCB7Bukuwi81n/uHTAk0LNJ4OWNj8C8VPXgHps3jhEKjx+4hg6FDfKuJ68Arm6cjC75ZN8sbC0nC7pDsmiC7LhMZ5pEp/SD4cdkoyt1Kp/fGEVjWZ9RKwDoZtKMnbdNQDNHfdTuEquEEsmmRJ8G9NO6iS+k+zeWxaxYwGyHBo90vI+r0ij2gbtrhuxGdVZDXVmEcYUHY/dGKrWzv/YQxmdVkUKE+4n+vJbYX1nyirEMviluqy1cFFdWMKuxppiWkHupF3BSmMKcQE6GqsGWsQ3usdtQAl0l/HKQfmo3jNphG/Hoab7SOpj0X72IZNUH9E/IJUYw== 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)(5660300002)(36756003)(4744005)(2616005)(6486002)(1076003)(8936002)(86362001)(316002)(52116002)(66946007)(26005)(6506007)(6512007)(186003)(66556008)(66476007)(38350700002)(38100700002)(508600001)(4326008)(55236004)(2906002)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?1hGzayJ1bHO1fCDDMB3qVFah+Cfu9zbq6kyTha0nEl5Bpi4IpMjZ3HkOZfZZ?= =?us-ascii?Q?nI3uAmJ+6mQbmO/2D7bVwhYh0elq8GlRDIwszlauajozz2t02XT0ym1QkNup?= =?us-ascii?Q?vL8dqOJ0pW0/ZiGBsGjPcV8gM9EHr6sam5LfC2HyK8cRmlhJ5YTa+Wjq6X42?= =?us-ascii?Q?YsSo6CGoq3VrfS2IyGkCgzARkXKVjZ12fvg1aCP7rcZFtcRr2yW8/t/R9Xra?= =?us-ascii?Q?CfxrBsI7abRpL0bVrIBU0GDtNbYbVM9no15qA8SMe0xrQ+fieD+LThBOKCFK?= =?us-ascii?Q?O2VZyMjfcIf/VktE+hq8W5qmn3sGTH1dZdgZOj+Kiwb0IBhi+3Bj4FK7e9gs?= =?us-ascii?Q?BNXsH4sI0kQv4G6UH6hERjmeIwTgpkuELvr44k48RFsWpY8JV6FFHBBS1ZFp?= =?us-ascii?Q?veTLdwh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iiAvSqbZUChf?= =?us-ascii?Q?4ajXNSGrYwiZK3UKlsd8IUSdV48vc/t7+oMDDM0DuN2Re/j6N4w0gYaZ3HBc?= =?us-ascii?Q?5vqIEfU2AB7YMReuifKZIODp0AmCKYAUAqKTzVKodKdvz1Y7IXA7m3OYUgge?= =?us-ascii?Q?CsoMnBKxwPhjJECDKgKNUk92qmVsVaOF1fDwpCdqF9DLoNKmrXWuwF2UsDsN?= =?us-ascii?Q?K0ODnlqaeR2XveQ+rFQFRQefU4zYEv+T3l49XQfAheq/q8RCbxyoZSOpz8NZ?= =?us-ascii?Q?zpED4k8e9EjrSht+XN+3AjLWKjAbJTKVQaXddPsQJAFGNAYFwNLsuYFLHYY8?= =?us-ascii?Q?4kAaMTDngqh39JZJsso+/J8SPOYaw/X6R7uz+jyplTszm7ze0YipJ54AR7Qi?= =?us-ascii?Q?uqeWnfcozvWaIXe0/sRcf7dUn0u1wxXfPm3Oial1RKWA4d2JWaypcZb88rM2?= =?us-ascii?Q?2wwkmy6hUQ=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: baf4ef8e-a7a6-43bd-89a7-08da24137048 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8198.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2022 03:51:53.7188 (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: d2qYSDqYCDq29UFjffqHJ8Us6wjZ76s58U4knMn3FqBTJatyL4dW0ZnYceyDaAd6 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4393 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 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