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 67ECCA034C; Thu, 28 Apr 2022 13:49:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 454F94286B; Thu, 28 Apr 2022 13:48:24 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60057.outbound.protection.outlook.com [40.107.6.57]) by mails.dpdk.org (Postfix) with ESMTP id 01FF94283E for ; Thu, 28 Apr 2022 13:48:23 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hEhFuwem7FtBqkA1LIpcqOTznWjaNf2nVbgYsOEbvdXB3rMLPPpXzluE1fudw4NQXQPpual7CPwxzBTYkcyBvukZPkIunWClunVohEvjaFoO51zbDPAgNhplaPQJLfXKK3eQzcDVdTO2YZroU/V0AfodvWy8lL9OvREECU3K8FoPUi5hlXU+Lw8cuA8VKwulAZMS9VFntsACrtL9maU0csGot3XOB1g78gt9jwMJS4Q+j+LRfeRoeZZKPYVvVYHC+bj+mcxjvOmL28MJBvXMl6O1bj3t8f8ZH/2aakzroxPg5Ni8Gtk0gs/+AWZ6FvrSlSxA34aXYNblu78pS4OltA== 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=4Y2rnEiBQR4Bjz/JLXg35s0hPuucTy5V5rGSAfmdSps=; b=mlEDSbJ9M/p5omnCoEaU0ZTd6iDVTxv8loIRuN/t+dKdQv/mgPB+w9HxMGTUrLqjhbDYUpZ5tcid1NhDmobO6GP1pbT3prE5K0p7X38tmiL11Y4oO3I0ZDerMOm7iXkjrE16a5UbalMOgFogTil8gy/bI4YaiQWI00R3t6MLhrjDaxpFy60JCfMGIPrGT/Zfo3NiqIqIPIhxuo+M101+Ap2T/cywJdJAD7mGwlS3P8kmqkoCqD3yS1oYnkuM2Q/QimzRV24uhAtZRZDg/bLIb6dmGfMwDl6o1HFFtjc37HVsttx7PityiYXOgEzjWA99IYBbfYAlywTYnU6K+RBOPQ== 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=4Y2rnEiBQR4Bjz/JLXg35s0hPuucTy5V5rGSAfmdSps=; b=ntgRnkAfZqiA7Pj478UP5DQwmuyK8BigarSfDWvaUlzYSs2aCFQ45KcAPzyfTZtLrsH9M2TGGBuhIY9/RYQs/lxl/YyBb5WmXX4mSPE682pB7DpLeex1KwtDAsaO52BYEW25i5U5HlNO322yQ5mr9wLKiLUeju7rOffpEIXrcSo= 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:22 +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:22 +0000 From: Gagandeep Singh To: gakhil@marvell.com, dev@dpdk.org Cc: Gagandeep Singh Subject: [PATCH v2 12/14] bus/dpaa: remove unused thread specific variables Date: Thu, 28 Apr 2022 17:17:31 +0530 Message-Id: <20220428114733.1419957-13-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: 17874636-d59f-4f47-d066-08da290cfee2 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: uVxiJfsqtdn5FfiWjLks2AnVEqkz79dhKV+bHeBuv+VHXS7zcSYruzdftz3DdBKoApyd3xj8jU/ccsouHi6Ig/m1j7tjuFw7ukAmXoW+5kUVfwh2NhUc27BpGKmGu2lnXdFlpLE6bIhYiBXB5yJUiz+7u8TKif0LL5ajP0BZvdGe29GlpCFdRB81DsQQRl5wq5D/kHp6/IN6Nq+yYQ4yET/+MAMMI7v0+KULEuK7R1i1RaWyiU1newTuY4uhqGFtnQDJ7KSLcYozN8wyS+XZG/qfDwh011QdeLEKLwwlKys+qdXwcfhCo9zdEjpMxcx6Iai6zmpuKagxe7JGyJh8C3ShjA1K32nfEswDqY2r2tqXdqREqKScg7OipnU9AoNhlG/wIXgwllYfCYfTY8prYZzUWFh4rmtj9DgNdnzh2Sxf00qdAuu4UZB0/NLmcgnXuUd8b0+5/zuf8/VKVa6YCEIwO4e72vZ0FbozmX0CUxF9P1NRICtaQpbyY7wiUySiTlDHVeJ99b1DpKM7NP5g+fiUDHFtwrAawjmtnHMpaoD/AYGJTrSMwC2xlJyxQCNHtu0vyO9kGctd83rPSObg4jeRhzViMCMWKCuBkVZjJ2cc39FD4JriOjNFy7DoFkDtwKNz6ZjNHHEWPB2gWBJ6RsU7m8R4BHFXwpeABuk5C3fE58eulKCbxJpzt/iP5s+ddRDrWHe/ajaqzbrIrQS9cLp33iXz96V/V/9n3ETwybI32vohFfcxe/nu4VfrZjw+ 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)(38350700002)(26005)(6666004)(6506007)(52116002)(5660300002)(2616005)(1076003)(186003)(83380400001)(8936002)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?rLFORF6mubOclA1hhihBImM7Z+zuIueFgKVsi0DhTspzeHhAVQziDG614dQj?= =?us-ascii?Q?5DgTZKazEg+tuITZRePlDJ4YpRp8H8IYm+cVs0EMuOX28R7Q1M28i7XWBPef?= =?us-ascii?Q?mxdb0sW3g/U9MIE1WlK//ijMGDhclnwUL1hYZIOTq/89hboKKheodxQ13R9W?= =?us-ascii?Q?XThc3P5NJsfB+qIHnJJxuHaVBL8Nkgs8ftqEeu7dd1m0Y00xz8hWu5EOA14j?= =?us-ascii?Q?JElvVg5VPvGaGt8KAz+zKnOMMIz1IE4Evbx9uHtaxp+aZGb+aHgfTQfq9qd+?= =?us-ascii?Q?f66TGx0YyZuKhyu3zjNH5fsTzM0+GjNJTBee8mhscxVA71PQ6bjUIw6id9Ex?= =?us-ascii?Q?NzPMu7LAiF4QB/lSJOxL9ddbvQzn5XDYPNMVwmuY0VIaiUe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JIljkXclugUnyRlHJdIIxNejo7XLAZ7UFGakDUULL+X1FH?= =?us-ascii?Q?OaInLqY2RaVrpMYV/42vn3pKWMwvUvTB3x4i4rVhGx33VisoYQSsYU0Ndg2g?= =?us-ascii?Q?2ILHG9nSm5c+MGHA+RmB3kPoKNQYGyTQIDOEsMHJJnCyYE7b+MILZgYP7tKe?= =?us-ascii?Q?76rfbNXz6Rq9LkaEMfXorNcgr9lRzxRrDmzUd8GMpRdQT2ZiPwBQ8IzlMxdm?= =?us-ascii?Q?GUwdJ4I67/v1OcTyWrnKdaj1o4YYIP8EmoNZAQ5U4sB1c3/uz/7yJIinhdfL?= =?us-ascii?Q?DXhqU49xzpMCtYf0QGwreeGFIcJlQuTZtLF6Ja0yyr21iXDiXQ80RBj7Bfs6?= =?us-ascii?Q?Eq9VqDDdCF9/nKN2++CfPUXqsXavAW18hzFWvkzXuW5tKT++l01AJbecFJC2?= =?us-ascii?Q?dkAZNtz4LzYdeAARGraeqWM6INInx945G1ZRXaS92YEjd/fDvvfQZbr8H0EI?= =?us-ascii?Q?3oa8PmuEEQ=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17874636-d59f-4f47-d066-08da290cfee2 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:22.2705 (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: 6Lmk5r8Hy4Vj2sf7au5byFJM2ARRDyZOQeUgNHOb75GJ3XiCeo3RiS/jGPI7yUhE X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8162 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 There are some crypto driver related thread specific variables which are no longer used, so removing them. Signed-off-by: Gagandeep Singh --- drivers/bus/dpaa/rte_dpaa_bus.h | 8 +------- drivers/crypto/dpaa_sec/dpaa_sec.c | 4 ---- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/bus/dpaa/rte_dpaa_bus.h b/drivers/bus/dpaa/rte_dpaa_bus.h index 54bb1436fd..1f04d9ebd3 100644 --- a/drivers/bus/dpaa/rte_dpaa_bus.h +++ b/drivers/bus/dpaa/rte_dpaa_bus.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: BSD-3-Clause * - * Copyright 2017-2020 NXP + * Copyright 2017-2022 NXP * */ #ifndef __RTE_DPAA_BUS_H__ @@ -138,8 +138,6 @@ struct dpaa_portal { uint32_t bman_idx; /**< BMAN Portal ID*/ uint32_t qman_idx; /**< QMAN Portal ID*/ struct dpaa_portal_dqrr dpaa_held_bufs; - struct rte_crypto_op **dpaa_sec_ops; - int dpaa_sec_op_nb; uint64_t tid;/**< Parent Thread id for this portal */ }; @@ -153,10 +151,6 @@ RTE_DECLARE_PER_LCORE(struct dpaa_portal *, dpaa_io); RTE_PER_LCORE(dpaa_io)->dpaa_held_bufs.dqrr_held #define DPAA_PER_LCORE_DQRR_MBUF(i) \ RTE_PER_LCORE(dpaa_io)->dpaa_held_bufs.mbuf[i] -#define DPAA_PER_LCORE_RTE_CRYPTO_OP \ - RTE_PER_LCORE(dpaa_io)->dpaa_sec_ops -#define DPAA_PER_LCORE_DPAA_SEC_OP_NB \ - RTE_PER_LCORE(dpaa_io)->dpaa_sec_op_nb /* Various structures representing contiguous memory maps */ struct dpaa_memseg { diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index 6f2b4baf57..875df0bfc6 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -152,9 +152,6 @@ dqrr_out_fq_cb_rx(struct qman_portal *qm __always_unused, struct dpaa_sec_job *job; struct dpaa_sec_op_ctx *ctx; - if (DPAA_PER_LCORE_DPAA_SEC_OP_NB >= DPAA_SEC_BURST) - return qman_cb_dqrr_defer; - if (!(dqrr->stat & QM_DQRR_STAT_FD_VALID)) return qman_cb_dqrr_consume; @@ -183,7 +180,6 @@ dqrr_out_fq_cb_rx(struct qman_portal *qm __always_unused, } mbuf->data_len = len; } - DPAA_PER_LCORE_RTE_CRYPTO_OP[DPAA_PER_LCORE_DPAA_SEC_OP_NB++] = ctx->op; dpaa_sec_op_ending(ctx); return qman_cb_dqrr_consume; -- 2.25.1