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 92B234555B for ; Wed, 3 Jul 2024 12:27:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 093F442E51; Wed, 3 Jul 2024 12:27:42 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2042.outbound.protection.outlook.com [40.107.20.42]) by mails.dpdk.org (Postfix) with ESMTP id C24AC42E51; Wed, 3 Jul 2024 12:27:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FCBwAhmqzy09vuWITvkTnx5+e6b90hCdFl5E7lNj0f/NHEsYg65weopvvHTKKZzS2mCdlp0w4gfK35RWgHX/TGxAUIZX++moMrjEgMhfh63orGrPHIEAHlbBe/NX42mkuC7FECZZ0mAwcyWRv5yLRTciiYw/i1ZaBS4WBXljsBrdpctH4+kFvLCf9N9SIY/N+wUdibDQJt019Tm+sn43n2TaGypR0LlPuFYfgDlBFCW/1tHDXnq0i4OeFc9Xy+K8nwSIiUXzcsnOlQIK5ab9nHHrmM3LGLKqXwo+BEq//xW6AeVlmk57KtUKYkgSG3ryrMgF5QDlqxScDBSSA6hvwA== 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=QXhoMO90NKBXWna/cGVsxCENdlaAllzWay4di4HsQUU=; b=XCgryQpxtiN9Ljqs4Pv3EJn6ClJeRbm+8LGAckMk3BKWrmEtTAtZvXXpjix5nG8mnol7YWVDM0PdsaS+sR5M2HrcPlWk4CXH7xruAGZ34CPki45NkVz8gcg527g4FByJKrzF9VwK4z9lHvLHIyPi8Rb/hTfQfYz0EB3S8B8//muLZK2begPHTJ0d/MnuZjP4ZaPsBEOYn7AQ+lTeCnaOQ3mxPDyvbWzUSSkX/reR7M3mEqmI4SxA+elloDYU3Jv5WpYCCyExrF0fD0atAIG9aY8v6UO0MsXSkjvcZ1kmIWbkVm6scVQHWjWmWDHcUUQ063DjE9pI8/ckefu+/Jbdag== 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=QXhoMO90NKBXWna/cGVsxCENdlaAllzWay4di4HsQUU=; b=sGoNSDtgliLtuuZ7mUJVDpRYAwDz0VE5TX8IFMz/ZgWk+Ui5JamQipt1SybxMoxIKjiqaaFw40livmWQJa56ROLfxT+464Dj86mF2zQ+P8zm9+1fuVOuiAqvYU+5JNdV6u2ASx/VbAnABA658GIEeJ3mvsCgIKXztzYyAp/ZQh4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) by VI2PR04MB11001.eurprd04.prod.outlook.com (2603:10a6:800:27d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.34; Wed, 3 Jul 2024 10:27:37 +0000 Received: from AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325]) by AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325%4]) with mapi id 15.20.7741.017; Wed, 3 Jul 2024 10:27:37 +0000 From: Gagandeep Singh To: dev@dpdk.org, Hemant Agrawal , Akhil Goyal , Ashish Jain Cc: Jun Yang , stable@dpdk.org Subject: [PATCH 11/11] crypto/dpaa2_sec: fix issue of user ctxt for Event queue Date: Wed, 3 Jul 2024 15:56:49 +0530 Message-Id: <20240703102649.3096530-12-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240703102649.3096530-1-g.singh@nxp.com> References: <20240703102649.3096530-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SGBP274CA0010.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::22) To AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8SPR01MB0024:EE_|VI2PR04MB11001:EE_ X-MS-Office365-Filtering-Correlation-Id: 8072c28f-ff5d-4e89-02d3-08dc9b4ac227 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?eL87xVVTgy+ufM2ZCXIY1sNwiyLodVZ06CGI1ey0/8DxxLe+DW1YL8Wkj207?= =?us-ascii?Q?XHz8z49ucNiEWHjoEd8EHOygh47xVi0VWcJeQ4iatbeo3ONGbwoA4LRIz0GA?= =?us-ascii?Q?S/ZP+Cci72cyPdFgiGeRUAE0IZZ8n4bo4MxttBy/yR1zFQ/nc3/qZy5UgxCW?= =?us-ascii?Q?cdT0CEi2zCXf4Dqhib7dJ9q4MREGFNV4i3qQqGB0oUCbxogqTFo2dK1PpEY1?= =?us-ascii?Q?n7qLlrNgaiMZV5QPes/Ul4VZ+j+QSqUaVb3PH1IIcUVsVuZkdXYTYwwxb2DS?= =?us-ascii?Q?ItbUwh6yiyDXgJcMD3IqxiNxMuLqgth0yzHHVykVWt+Ho3gpcW4kFlmdWxdY?= =?us-ascii?Q?Y0Zjfc2NhqruD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Nuvodz0?= =?us-ascii?Q?CzcAGdm+egQ+ZnBb3KMysHalc8IUJt98iEzO78qsLG7VO2q7vPX2aifeVqAh?= =?us-ascii?Q?1lLJzPTW82xv0QQKy0cHk/Zj+QXe2NKe4hTZ0GBe917/39G0w2GLpgM/sKw/?= =?us-ascii?Q?e/zdAJY2Edh+5QjByA4+zrKvIBsByGWjyEx87MDofVwTrJbYhg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8SPR01MB0024.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(52116014)(376014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?7X5b5MgTiXjYlELf+OFp5Pj4MJJ0V5NJ/OxB+6axJx3RQiHh7adHW8wsAzxq?= =?us-ascii?Q?EmcyZsp/100x8PN6gKdIwuRggSCbvGTUR487v2Zoi+YXevWcJN5w8h99vGeR?= =?us-ascii?Q?H5QQYI/Q3kNzGKKuCOp/pE3SrOb78TfSKVFCufWYfCv7uKUIdLoOmkh9q0HT?= =?us-ascii?Q?kfIxoJJ/d9V9+GfppT0EFdUVoO+hdAzB8zSq/EX8a0JUt8OafHf9eemvsIBB?= =?us-ascii?Q?r3/HdAgP1uw2aKKACFTUEwh7k1NhFBry5cssxNUzbOF1NIj8VVEEBaO54o1U?= =?us-ascii?Q?s/dXwMb0BckrpNf4yyV9xbn9pMcqKYNdRUanX7F14L0D5gO59wQ4mIt/8/n/?= =?us-ascii?Q?ILwzIFHeuJhXWWGG2pJeIMOf9padsK7uTuZzzixGhCa44LdRmLHn2HYUn5FU?= =?us-ascii?Q?4XRPVnTvaNrAFw4hW+J0QOYRzAvJtr+WLJOPJf+zg+B17BtbkTitHCqCF25f?= =?us-ascii?Q?1T7Oz03g/B49/+UcklChQhXlXh3A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= =?us-ascii?Q?g1Xa6rmsQPHYr4kDoY1zgnBrWSCFs0+0o1fH0NFLnXmxwOjnn7PCapcID6bI?= =?us-ascii?Q?rFDVduaJR2dWNboENDb3woBNZQWNghWWalOy2FQZkZ17nEEgUeptG7/5dvNs?= =?us-ascii?Q?HgZrCtHFQBIUoBB966NUFcM0rDx0H1hkuiymt/n4XlA0haRS13+cHqLwObxU?= =?us-ascii?Q?qsGt9gLz5qM8IbLYDeOowzworCPUoAH3CE4JOT7/?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8072c28f-ff5d-4e89-02d3-08dc9b4ac227 X-MS-Exchange-CrossTenant-AuthSource: AS8SPR01MB0024.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2024 10:27:36.9890 (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: eNnNZqPM9woWT8i5Y83fpWaGPekAOsu56YMhnV91QF27xpmMpkyN+5WU6OzYZ6jL X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB11001 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 From: Jun Yang Context configured should be aligned with context got in dq process. Here the rx_vq is just the first element of qp which covers the issue. Fixes: bffc7d561c81 ("crypto/dpaa2_sec: support event crypto adapter") Cc: stable@dpdk.org Signed-off-by: Jun Yang --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index eed66d721f..b35bba3bdd 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -4103,7 +4103,7 @@ dpaa2_sec_eventq_attach(const struct rte_cryptodev *dev, cfg.dest_cfg.priority = priority; cfg.options |= DPSECI_QUEUE_OPT_USER_CTX; - cfg.user_ctx = (size_t)(qp); + cfg.user_ctx = (size_t)(&qp->rx_vq); if (event->sched_type == RTE_SCHED_TYPE_ATOMIC) { cfg.options |= DPSECI_QUEUE_OPT_ORDER_PRESERVATION; cfg.order_preservation_en = 1; -- 2.25.1