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 4030245748; Tue, 6 Aug 2024 10:42:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EE88140EE4; Tue, 6 Aug 2024 10:42:07 +0200 (CEST) Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2045.outbound.protection.outlook.com [40.107.249.45]) by mails.dpdk.org (Postfix) with ESMTP id CACEE40ED9 for ; Tue, 6 Aug 2024 10:42:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=b1GMUljI/7s1W92pIADHcsdieoFLbt1YdC3bzECrvLSC4Lq1U9Y5EaYaBcbMFmHq9DSbR2K5CRYw6lTgZRUi2kkColrW/cp8MrcMcN0JJ+IxKctxVPNfrkwblqmvcT5RdxXxFD8QBdqeVUDN5XgIGArpWJkYwz8Hu/WR3vXRxsaxGGkw56hUfV2EMaGQRz23d6EfLIX5b7FeV8JTT38xStnt9wbKhRbpJmBZKd8LNIprJzvbeOHwmNN5J/uNFSeLUq4qtWEEpQ8OJmtlBMz5vBO/Vjr6kVlMHQkWCmB1K0OK3NvtjkDh3bCtnaYlxRtGyyoK9s7zKct3mEx7hoy3lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=eLAh0dkV78Cgn5TVpdpLeARAR0gElzljoG7OHPWChGo=; b=l2kGW1lMa72XoiiSscRQl8mpfYHQxFsCen+yRUBRFleKYREgl8wCmfDMIrbTJ2+QTDUb48GoAoL9e9YHPqGildW1eH4GOPByakh4iyMSmgxQ+gNI1F4kp4l/lIknmxsx8OutEcykdKXV2a8QqVoyZcHnncQnSkl10XFpqu9PXWLsxF48meIDtJPwfjf6G/pDS61QY/idOWsYgmklNV0aPZSFhfboePl+sbcey+A6toQicokKpiirMaswCQHLIja9wgLgwffPpmuKfhOhf5QWN3r4Z1FqR8kEFKQbbyJB0zsdFYGtSSN673WruXh/T+bt9DvjclqZHsnBYr4LgE+y+A== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eLAh0dkV78Cgn5TVpdpLeARAR0gElzljoG7OHPWChGo=; b=lE2SIqAtu2ICJ6NsO1ENszwTWs+dMNtgTTXrUO57MthHFhY3nlhlwgQKY+9d8hQrtl+TIz/ZO5hbjW+MsZ0qwftWRnC8dOTRknMvpHFX+gYh6HANhLuDPtrv5mZlf8p7oqraNZqyRPqX+Qj265FomUSCE1KjMD3iopfxdrtsO8VWCbLe+ANFFpNlcSGgtZoX6tGoafsoliGoL3AQQyD8nyQI/F/U8beTVu1oCmwHX7vbsUGazoQfDYUFLJjk3k2NC0GVxtiSYLkmpPtxQJ62palS/CGXsqF+LMGLi4N1Jd0bXhmwxF5ki6tpRCO9u0rEu81Iic/qrAoLzjZRWu1nIA== 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 PR3PR04MB7210.eurprd04.prod.outlook.com (2603:10a6:102:8f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Tue, 6 Aug 2024 08:42:04 +0000 Received: from AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325]) by AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325%7]) with mapi id 15.20.7828.023; Tue, 6 Aug 2024 08:42:04 +0000 From: Gagandeep Singh To: dev@dpdk.org, Hemant Agrawal Cc: Jun Yang Subject: [v1 6/7] crypto/dpaa2_sec: remove prefetch code in event mode Date: Tue, 6 Aug 2024 14:11:35 +0530 Message-Id: <20240806084136.3212615-7-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240806084136.3212615-1-g.singh@nxp.com> References: <20240806084136.3212615-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0041.apcprd01.prod.exchangelabs.com (2603:1096:4:193::15) To AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8SPR01MB0024:EE_|PR3PR04MB7210:EE_ X-MS-Office365-Filtering-Correlation-Id: c2a0da57-24bd-4b88-01ec-08dcb5f3a5a6 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?EBoH+kDwik2s5kICYyOEpTbA29UoWepAG1wToh4IXLviPy5+3IvybxjxF6KY?= =?us-ascii?Q?7ui3a8b8SjAHIQjtEcIHFuNiVgG7TSLum0YgDa+KQiZHzcMHerSjvzTjmbk8?= =?us-ascii?Q?EGKGQMZ5RTl/qGUHUJXOw//R6FwEpnI//Yi0SmwMSsPTgCYgJCU66zByZVAy?= =?us-ascii?Q?cvomS2CPg/ZCRuAh3FxLA3SUU6AVJvg98ABG9ZdgdedgsR+rFzuOCJxBVXQ8?= =?us-ascii?Q?ODNO5otqRil1fo0+YG29DQYXxYJkN8m1PujpXesF242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fFESwgZ6/MfSiVCMmC0wy/Z175RoYiY4+epVlCCMoXlBZj7iDXMkVXP+zd?= =?us-ascii?Q?UyflhQ1X98m6+7/DUwqUHS3QIaanflQf3K7gBc3M4jWYiK+s3uHAKKzRtLAM?= =?us-ascii?Q?zybdglvxF2N+B9aRbMOsHUe9Z2MBWXr8mRveW2hIB6QYiuKF+LvIlRFDkkIZ?= =?us-ascii?Q?RSvstj7T72rqJQATL0/kFYmpvh1Z1WJmNcfu415dDjM5BzfjqzA0RdlNrIt2?= =?us-ascii?Q?HdglN1X3CxSv9VdS6GAeVli0skPzouXLt0YD9P82FmumLVlZew=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?3Lta6TAewUoOLM16fFIAUG7kfmUSd8iIXbPBdJI84cV6kFUPHNX5kNJkwa+6?= =?us-ascii?Q?MLpqPkTq4HMsVyrrpHQO9FOF/H7uHzAO4yrTXQiTKfqJCzZWtA86x5zSQph3?= =?us-ascii?Q?FOQLNhdhXy+UHTk0pbLjeQArEkTjB8UjvDE8+IZqyRc9hzSUAR+SSnx7LDLi?= =?us-ascii?Q?SSIlWPviBNhr/JrMO/RdJ4QVKBpVZKXc0ZN3RqyqsC0CEc9EHlOYUwRyOhpn?= =?us-ascii?Q?mmQBfac/G3pjQgpX4omg+0gc3SLz9a77VMTB7T6NZ2QTUtFgbiq9JxRzkAej?= =?us-ascii?Q?eM4xlLPaopK9YBqRUUWR5kM3O6O9M4MDKlNPoGND8483DlA2urTfXl98cRj5?= =?us-ascii?Q?MAqTlCA0cPzdbyLEjh3RRpXTEdM2SiwTP0Ya7RsEXU8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085f339S7IE4KvdyaPYkU8pH9ybBcWW4lC6TV/9/rqyyW9b3fO07?= =?us-ascii?Q?E6yLo2CQ6oYjXn2TrMjnf7RY4tdTBdtnr4qmFPGD5cYKFklWr7GqeXUPYk3/?= =?us-ascii?Q?kEHnAKb7lHEZr209jlctY7euZj8Z1cfGis9cQB6ovQchXCSJW+e+y+xv+gYX?= =?us-ascii?Q?VCw8moRry/qLL0M9AWy5DXSSHjvD2IBqm6Q0kji6LUYE75fV1HstG1z6MXHZ?= =?us-ascii?Q?ltdfFtDulJ5YlYfXPcvvhW24nbFwP48bWXTjYF9HdA30VWVewC3M05R3pKMU?= =?us-ascii?Q?kvszM+AgpHu//mYp/GKjo902qAe457eu7YL0xbNG?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c2a0da57-24bd-4b88-01ec-08dcb5f3a5a6 X-MS-Exchange-CrossTenant-AuthSource: AS8SPR01MB0024.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 08:42:04.2160 (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: 005FK+1oxH5bK7K/k76O/RTgep2DRuLtuXdEomB5S/O6WpFRIOEBA2QJEfJKn8yk X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7210 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: Jun Yang Should not prefetch mbuf and crypto_op which are not touched by hardware. Signed-off-by: Jun Yang --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index ff24a8919a..1e28c71b53 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -3991,12 +3991,6 @@ dpaa2_sec_process_parallel_event(struct qbman_swp *swp, struct rte_event *ev) { struct dpaa2_sec_qp *qp; - /* Prefetching mbuf */ - rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(fd)- - rte_dpaa2_bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size)); - - /* Prefetching ipsec crypto_op stored in priv data of mbuf */ - rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(fd)-64)); qp = container_of(rxq, struct dpaa2_sec_qp, rx_vq); ev->flow_id = rxq->ev.flow_id; @@ -4010,6 +4004,7 @@ dpaa2_sec_process_parallel_event(struct qbman_swp *swp, qbman_swp_dqrr_consume(swp, dq); } + static void dpaa2_sec_process_atomic_event(struct qbman_swp *swp __rte_unused, const struct qbman_fd *fd, @@ -4020,12 +4015,6 @@ dpaa2_sec_process_atomic_event(struct qbman_swp *swp __rte_unused, uint8_t dqrr_index; struct dpaa2_sec_qp *qp; struct rte_crypto_op *crypto_op; - /* Prefetching mbuf */ - rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(fd)- - rte_dpaa2_bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size)); - - /* Prefetching ipsec crypto_op stored in priv data of mbuf */ - rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(fd)-64)); qp = container_of(rxq, struct dpaa2_sec_qp, rx_vq); ev->flow_id = rxq->ev.flow_id; @@ -4055,13 +4044,6 @@ dpaa2_sec_process_ordered_event(struct qbman_swp *swp, struct rte_crypto_op *crypto_op; struct dpaa2_sec_qp *qp; - /* Prefetching mbuf */ - rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(fd)- - rte_dpaa2_bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size)); - - /* Prefetching ipsec crypto_op stored in priv data of mbuf */ - rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(fd)-64)); - qp = container_of(rxq, struct dpaa2_sec_qp, rx_vq); ev->flow_id = rxq->ev.flow_id; ev->sub_event_type = rxq->ev.sub_event_type; -- 2.25.1