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 C1A9A4574A; Tue, 6 Aug 2024 12:28:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 55F4542DDF; Tue, 6 Aug 2024 12:28:03 +0200 (CEST) Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010037.outbound.protection.outlook.com [52.101.69.37]) by mails.dpdk.org (Postfix) with ESMTP id 9A27742DDA for ; Tue, 6 Aug 2024 12:28:01 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RsNJsKQG2a6DCgkHvl2PlIDJXoV36YOfd9yM0/3zdVydFsKBu2dX++/ZRLD5v0vgU6Ic3GlRFgNO2WFig9Tni8ojofC1bYIdNY1cuvcaVeptisPfsoGU43x8Af7yM6zluVwR/Yg5TC+/JhKcjYrq910QyIHi5hg6/xaOr5xxPkmyFvoBv+V2g2i4pjTyLDdQb3XDZc06262wO2Pn4VCxgWITPYYf1QuxO23g9gDnjl6ulPSZeXAGsRYqKGuUF/SGktviPJuXOCopFj+aXWic1KbYwAG7nhC5RupuCVato6Tq1XBhwqYBJIQAII0TvquBca/h+V6JYtYavrFcZZRvFg== 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=d/Ot3Y/xHI1Od29w5r9/2QwDmLpNEx6tIQjk8pMSFrDJpf9HgV2ZngS0EUGpiGLIWjyYNl6w54IaDfpm+H3cKZLQgiW4p+yw80HW8aCxMBFcJMJNO6b6H9ldEr08eQY8As3SfO1hNDYEBb2iYa/pfnCYh8/ZaqqyCdYQGcuIrcd/iCdUT5y2X+e1jfh76kjxkIm0eCyHv0AoG9McKK1zxUuH7hkugjXmC82I+pcP9RnbxaVJLbWDWQoAVO3tUHpaWUMvGFdjZpX390640tdX6WgM+MNQbeQSG5tGdWzh4EpVGzIXTpel8cbIHf4OauKdOulT3J3r0zwF4TIiKa7fCQ== 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=Q4i5ZjDROwLD0Ht25rPmPush+1icP5mWtjH86wvJzm4gW+UXJ7B722Q7cNDJvYSiVj86RLoSA8yaAKvjRxx/FD54MPIXW3wvqwsht/47706JaPPbJeP2arAqEGuEp3GPGHc2bK0+pms8YcRkV8vks+tKLX/QdWlJPF57u+bHF6CTyvE2of2D26MVg13vsPUDZxahGUCgB/EGeozfM5wrbLhsHn7y8H6tZULXksxgnwVIG4C7V77uaLJJfRK4L9N13hfcFhpZgdfJHPQi9su4GiFjAAGqV46qsUWEHJKZgh/oC6dDoGNY4DWSoUcC/iKkRWoFxyGDiEw4qtQGUdAHAw== 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 VI1PR04MB6974.eurprd04.prod.outlook.com (2603:10a6:803:133::15) 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 10:28:00 +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 10:28:00 +0000 From: Gagandeep Singh To: dev@dpdk.org, Hemant Agrawal Cc: Jun Yang Subject: [v2 6/7] crypto/dpaa2_sec: remove prefetch code in event mode Date: Tue, 6 Aug 2024 15:57:31 +0530 Message-Id: <20240806102732.3225536-7-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240806102732.3225536-1-g.singh@nxp.com> References: <20240806084136.3212615-1-g.singh@nxp.com> <20240806102732.3225536-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR04CA0188.apcprd04.prod.outlook.com (2603:1096:4:14::26) To AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8SPR01MB0024:EE_|VI1PR04MB6974:EE_ X-MS-Office365-Filtering-Correlation-Id: 218cdded-0ab9-46ea-9d17-08dcb6027236 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?cBLFaAUAmEAzY+5vA8v2OKe3M2NjBAl6cABSrviZbQTcCu1sPxfJbehDra47?= =?us-ascii?Q?vETD2U4fDmakIgGuVQO5LEf4b1lmZQEEJsDDI/DHabn7oogk47EI50W8zeOT?= =?us-ascii?Q?chzrR6Ww07uwot9LUeivcByVHwNmbe4QVI3iwRtS8QnG4yiAL9rBA5tth5OQ?= =?us-ascii?Q?Xmt05qE7PoaGu9SdvGVadqMlR3BL6AniqrxPITG59V6Dt6r5DYBN5gAOs1xw?= =?us-ascii?Q?MLi1zIjmE7L10Jn0t3BLS5NUXx8Dp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Q?6EfsTNhcTzepomv66EKU0D4MW5gTmoHyswgu5DP6LfqEcDvFX6AHlln2aB9D?= =?us-ascii?Q?LSiJArQzUbK1Zk4BPENbynIRv9SOeZnuuSTytGXDllzzohpPuZj4dwq9o0J/?= =?us-ascii?Q?jsLsExHpIaUQ0WKCwGG5s+ZbHloOPmbBCCm5R69W0NJb7jyNkK5KAOTyVSbw?= =?us-ascii?Q?dVvBtwHcU9m9LE6CkK/wAHkGERXvnZjgtl8I3KEBR16lqkIggKABaI0rcB+K?= =?us-ascii?Q?GkkRqYulc+0eGZiVRrr2mbaLWwldyt1iF+6JNNtvPg17vin21Q=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?+6bCCC/JO9hzu/fBpbuZgcZcr8fGI1mKu2RJ0VOrrwrRjUre91acVFdsKp3X?= =?us-ascii?Q?q/WWTYefS+Pe1yAj7ZJ8TZLpHSCK4R32Mhgf/5/XJ+fIwGEPtBU8+ctoYS8y?= =?us-ascii?Q?0/mZzcBwE3OVqtuN3KsLPlNfYUgHLyoSF7HBY7dRHXVMCiADrYFnqvBaptHz?= =?us-ascii?Q?a6Sv7L3hMmaDbsxGmh7O6K/NR3hjhUggOpORJFPIGMZO14opRsS8c69mlTJy?= =?us-ascii?Q?2AOJyOMJ/wZkFXtukAQcEOEu/xbF3ZBpnYRqfZaNKxy/8k+eX4iCMpvZKLoI?= =?us-ascii?Q?SU7Fp0ikGrjnM5pDTvx92H69CkUwBfqfRrQjfh+vk/O6atAk17HcALEj0/pl?= =?us-ascii?Q?eZerqGazZr6mxdCwXtl7v+dEZksdDoYuP5h9P8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2N/+lzT4yvUruLwtvb5bBKWA32z9UwJG9MLDBty8j4YHQ?= =?us-ascii?Q?v7rmkWzO4eIPosmhn+XIqlk14g3BkjPg3caMFl9VNlfA0nnMwu3k77cUoazm?= =?us-ascii?Q?b2+9UHDh3DwsC2mFWP9yb2NUia/d0dH5DoTprlj9Rt3ITp3NmJNmUA1h/eKq?= =?us-ascii?Q?wKUugA3lnm2Mi5345qbkCCNCy2VPH51vaArTUkF6DtPZNs/JjjpkkbfHHk3G?= =?us-ascii?Q?nWBEwTwzYUP7ACmC2FnXclW6lpXhWsdM1hQ2JASbFtvoeKXflQSt2ELDQatR?= =?us-ascii?Q?8L3usr3bmRUkpzf1TGco0uMv1RouAChazo3vp2CG?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 218cdded-0ab9-46ea-9d17-08dcb6027236 X-MS-Exchange-CrossTenant-AuthSource: AS8SPR01MB0024.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 10:28:00.3709 (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: kwhmN+MhTE7Pg9dz46UUFinlxI+L6DMGMpDn11syCSAWRq6Zls2szA8Ha0gd85i5 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6974 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