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 14CBBA0093; Fri, 22 Apr 2022 05:52:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 58AF3427F9; Fri, 22 Apr 2022 05:51:58 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20080.outbound.protection.outlook.com [40.107.2.80]) by mails.dpdk.org (Postfix) with ESMTP id 868B242834 for ; Fri, 22 Apr 2022 05:51:56 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ybzrl81H6TvtlTItM/oup3vwnplOWokvXNFS/1aY32hFw8udL48Y9HF6qrTlUmNnVQB7R3eKSfZfxNvXr3CWtuNZey/TPsFAorQsrJW1pFZsYE8r/yXW3Xk6O8iGmApX75XW0Ojb1QSQY9713m0AT2zgUg2hlpPwrcdz0RNozWM5JJFgJqJqMZEjnioiTjSBgI2iGm4XtdwFUgnVPjjT3M9NSna85f7Jy2HxeiivUzQQHNpTyKBK6dECyuwIjnvmUjIfAUYNWANdVr1YwmS1yhOTnKaHfJhEn9cqGk3W/nhCLSchABZmt62+nDkQv74duAfp3x9pADN7eHYzkbvMSg== 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=4k6zNFgS8E6QuW+hymf/EgYVeHuG7Cy7xNGZkIdy3ts=; b=d8HCBtG2b0u970zydkGw8DArluUF9gqtkvnfLRkZzu3btLJ20fjF94Rcvad0UJX13vRbDiBitlJmZeUhY8KnMDcxFg+MXA7Vi0KSFvXQhO1rgml6W62T0sazRJ6/QO3AZDyqVSPqFbPWavazOCWoCWT0MroCLuWQhjtu41kGcQYBHuC7WOm4dgWDbCu3L4NJTAQQ3nuo4jaLIejGCTi/HSjd+SvzYwhxlZTVYUzndm4Vq8hgraQn2Nn8qLaE5P+To0YJROyqU3nM1xm+oXd3auJOKchc7r6FA10Dhx+I2/c3PXFyllk+qe4kS16kt+FIETEgAcemBdZDSY3YiYYtWQ== 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=4k6zNFgS8E6QuW+hymf/EgYVeHuG7Cy7xNGZkIdy3ts=; b=VcQmSi7bPuvMetobDtMeGO/CYqVDV1YZmTNXIjZFp875AOajkQWDzmdCQ2AUS+5SFk0sOAX0FvGfRr/iFW6eW0TqDEkgIigSVRY8dKvRW2Ls4f+VySCIjSdKos6j72rbtrPgrb5XSGxN+7zpiy6Vs3Ny/ZL0VegkOJ17FI1ys34= 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:55 +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:55 +0000 From: Gagandeep Singh To: gakhil@marvell.com, dev@dpdk.org Cc: Gagandeep Singh Subject: [PATCH 12/14] crypto/dpaa_sec: remove unused thread specific variables Date: Fri, 22 Apr 2022 09:20:58 +0530 Message-Id: <20220422035100.3180870-12-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: c75bd8aa-b8ae-4a81-9119-08da2413716b 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: WF5hETTXNB0/mmaMDAOzj0cUMUPGduFBfm9T+v1nTTfjT/ayePBf/XHz/cgrcGztR93KJFqLYeBzWNWALKHByS2GGGCmd2k+C+hP9+z/LFO2xbuESxQa3GpjyOE819UaN72eQkwUhBuGQ0gkbUE4iDdrqbGB0aK6rZQ9yFkYIvQ56cjTUp5O2vYSErQ3smmmD3nF1ycTiE64rZS5/bzrmJU2/HkUkNJcfsMiWwE02OTfklC5K/lojVVSDmj78gNUnATgW5YgKuOpnI4lm9OqiLsYCAKwpSOs3xB7zybHPcPN8TlyhSc+kxYRSUJsaZFA25yErWcxnsDp+QvsNnYDtqg8OniJDNfRmD16+6mUQo7ROxvBsOzEus5GXclTID1M19X+pYY3kDx8mwHlBQeClLRF2KOkaGsNyI4kdt8sCKefQDnISPUbRkFfRALIOFBRhQqz27Ji+86EKKYPHDD5+RC+rdi9Pz7LM/veWswIq8wHcvvOXyMXQYHmo68SNLYPbU+ZxtZRJhjJSYAdgMQ34WFw79dW48gD0ATDSq7LY6CR7u/ZvHqKwgkEBrDyLolf6l8cjYgy3O4rUfVt5V2vgDQTaz8fZqAsdyKc27bIj0KrTXeq31y8hbiHOODHdNMVrRbdT5TT8uaNiWuQNBY6McusXM9EmNDhVDXfOefUsIV1M5z648+rDbL4cKezfArfY/NpVfrzQN1AAV+V/e9/Hw== 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)(2616005)(6486002)(1076003)(8936002)(86362001)(316002)(52116002)(66946007)(26005)(6506007)(6512007)(186003)(66556008)(66476007)(83380400001)(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?Cl3fbZs7k8FgClJ94MtaUR5043dngNrWo78LUK6R7Z8bppW601zkfEzdMWpr?= =?us-ascii?Q?58C8+iWZ3hEPNM41RZQxn9A4Gk1GylC1lx1M4hTmREgI4Nr5+vD9I65R2+kI?= =?us-ascii?Q?GgLmGFV2iIFqsoU+mahDsYNoaPnmTNXcmO5CaIAQvjOUw7U7XMDqA8p6abdQ?= =?us-ascii?Q?IEYdoTsUJhJ3eX02Igx7zIlk3gtiLe79vhTu63t2HbJgcSByn2CtQtotv67T?= =?us-ascii?Q?z2RbmYH7PPexzsKqnCshmIiuuG9Fy9Enqma+hTV76y7S3+F9Oh00VDOWQqp5?= =?us-ascii?Q?ESHe8nH9/MC59dHv42akfofgXt1wbMwqdpvdSYNzqsQDgNL/Bbt40t51xjk/?= =?us-ascii?Q?p6sAjBWP5e2qL1uAhcb+0AxnccUJgwCkNvgsT8Bsylvfpiokc5j89i9zyMq3?= =?us-ascii?Q?q2qXw8CRBjSbeFLEfCwPOqcscgdvL5lvSAJqf9F3lZdDA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q?+uYFvOYy4qkOGZ+DqwfTfs/y69iF+ABhkvd62pgLPztxBbW7l2pIVjuf12ph?= =?us-ascii?Q?odcRFK5lthQAkKwXvjM1oDZpmGaBz9gIMHW3YUhInmlEKszqdXjCzUizEN6X?= =?us-ascii?Q?ErqPpks9D9S1S4ddDFu85X5ROj0dPaufzYQ/aoFkAIOcz2UmlwUda+CiNpft?= =?us-ascii?Q?duZL0Ex+4E9q7dJcHM25XA426wPT3balmexWK00eJd54GtePCsTTRsgUzjjG?= =?us-ascii?Q?ryvKWWKjL9rvP5KS0uk964YWi5J6aurPZWDi/oLCQZuc4SPLHalhQL2ispYO?= =?us-ascii?Q?5tTnCKjcCuCxVZGXseWdkqAVTFx3PywhpBMrtcUPwiBISp5rH64WE+73jwzj?= =?us-ascii?Q?OndsEPuFxlQ2sYlcupWkOaDDchVOsg3tQTiJsESCAeKifzts57QU+myaykFA?= =?us-ascii?Q?xwzEKCgcvA=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c75bd8aa-b8ae-4a81-9119-08da2413716b 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:55.4386 (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: IhlZjsJ1s6pThUgTH9BVNaWoEsHsb7pEi1JuZ1d0PVntOU0zgwOakwijVVzWNmJw 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 Some thread specific variables are not being used in the driver, 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