Message ID | 20240823073240.3708320-5-hemant.agrawal@nxp.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Ferruh Yigit |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4E97945843; Fri, 23 Aug 2024 09:33:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA38843254; Fri, 23 Aug 2024 09:33:09 +0200 (CEST) Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011011.outbound.protection.outlook.com [52.101.70.11]) by mails.dpdk.org (Postfix) with ESMTP id D634C43245; Fri, 23 Aug 2024 09:33:05 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=N/mi9LkpQCyqLvVDxvUD+6qIEDeyQ4Nf4GeLztbg1NEreLTcE7i3mUIb3svbpWrEbkXnDLIHNYgh6uoyMbb4xidWAkR9+mJ4W6ZaM7QFX0wAcWmfnNO+SJROzgKNzG5MNverTEkmdz9FV3GgYTGY5JRXkL2bHVedDiHo4fUhA4/WW07czbYjasa1Ea+dC3mAcQnbKtQ3wCNmZJSv690zT6hs5atpAyvRL1WfPymmPGqiXruRSbJIuDDevciPrE4RW8Rq5nZyhJ5lu98APDKR37EdtKqQl7R9V9b74nNtAftAOF4UDxJovssePY6uZYmhJM/FmcodhBFRE1ffwqzUPA== 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=5gzOlFqHHOKX2aDsrgYIZEEnx6dTdb6uJxfJzlHJT8I=; b=EFK6kHj9kiEGaCamF0hjrHIsbTFi83cJkRbCzV9ni6kxvjvlvomhrYkldAhn8TjkNkZoCNUO2LlD8ftecA1fEbqqdvutOhW8xLfIwFLNM2gumG8kyHHmDOv6v74miuIeRcDJxwMgTt9+F3Z+4B/l3HnuxwlIe+orGZqj/i482vAMQqyIM4YDyePvUPFyKjIcQYB0xY4FwaBtONiQNOKSolOnRMRCOGLI4HL2d8g1XzDQTwl+KkN/cq0sWzBWjLS2dNEFkmNlCTUMYkXmkkwIlPoL0onHuhbdWDMeG/WoR0AZPXptu13p74akjRtFDxnYh9nHS+kuG/USQ4jyF9ZAsw== 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=5gzOlFqHHOKX2aDsrgYIZEEnx6dTdb6uJxfJzlHJT8I=; b=GZnOe3ClC4trp6XFjO5LZSN6a0MIGO6rKd9bi19FjiQnWWav9ItabV3HjajMtBY+bupPbjq/nLk7h7ENi5XU9RXr9VP67LVdENCy5lZS8J43gysRfZwNfWoLf0lWBegqdDjB5TyDz905eT5honUun4H701apGs7OGceHjXjyaqrsKlRK9jfz8c8PyQbLk2foNLWBbIw5ikjsl677MgGz+T48ExuzSNw93mWlVnACwLad63Ld6Qn+ZbG7b/ARJtp+YBg5sCHsNu6/oa/2VC0VWfh6MilT4EG0T8DVzpTD5Z2ThL1r95AmtyAsNym42e02k5JTlxALDAtuKhhRUEvkyQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) by DBBPR04MB7547.eurprd04.prod.outlook.com (2603:10a6:10:208::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Fri, 23 Aug 2024 07:33:05 +0000 Received: from PAXPR04MB9328.eurprd04.prod.outlook.com ([fe80::367:d59:375:fb87]) by PAXPR04MB9328.eurprd04.prod.outlook.com ([fe80::367:d59:375:fb87%3]) with mapi id 15.20.7875.019; Fri, 23 Aug 2024 07:33:04 +0000 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: dev@dpdk.org Cc: ferruh.yigit@intel.com, stable@dpdk.org Subject: [PATCH v2 04/18] bus/dpaa: fix the fman details status Date: Fri, 23 Aug 2024 13:02:26 +0530 Message-Id: <20240823073240.3708320-5-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240823073240.3708320-1-hemant.agrawal@nxp.com> References: <20240801105313.630280-1-hemant.agrawal@nxp.com> <20240823073240.3708320-1-hemant.agrawal@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0028.apcprd02.prod.outlook.com (2603:1096:3:18::16) To PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9328:EE_|DBBPR04MB7547:EE_ X-MS-Office365-Filtering-Correlation-Id: 11e9714d-0cc1-484a-5ced-08dcc345d2c0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|376014|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: 4CS7pZw7SYJLBHlx7EvGieoU+EVm9SZCMdpFAndkGYZGHyUy7bz9OdM5DRoNHfpbzUjA8aillyz1g5OSFxPJWmU305ZusRXl83WuNOEDhzyUcSpkHR3MyHI5/LCTcdFYVxAjqyXr6bsSpMwlu4YyqJ89uVrOsGR9RS86BiOP84E1wBghO637NoS14FNpdPb03mxf4fdbBw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7usKjnxlcwa90JM4M3k6G35axfbYhl/bcBQ5Ti70Kx9xlshhUlgQRTMMVT0gcAP7HGw21WRCVHdbit+DwZdy6QfFZteZ0gYYQmmCozTh7Y2Yote3iSy5Fy6L9/mLw4QR87XdXfLBXZlP4aGkcPGh5blXOTA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9328.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(52116014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Yk+1jcFd2oSE/d2Vl2uwHextshIDtQhedZQ3+Co8KucyGHhYSHfw/0/o+oOV+Zj2HojXYhoqySyjsXybD9dOSBXid+Z8g6AKIKfqYjmUHk4MDFwxTNBoHq8hpKFTWLvzS4G8EwnIT2fYk2/DUE91PPsc4DuGQPiy0D5WL3d0c6//02oN9teqacASC93WLjMD+WzqOIADqHX5p1XDOGspBGMbmo93p+z6d6sG2Ks2uSE+kfACWRkw+j/Dr9pgNDOPf6uHMm7h1NVMqbWRAvAhP5sZYT6XKsqnnjdiShTnE3Un41bukZZHGR6Ts7rBHXbjxuKonKTmX2cQuscnz8W3b3IQpsRB3y3sonUKTWxir6QGttj4vDO3P6HQLvsBKEO6hx9DHq6H4MuYsGPCG2jLVSRlMHI8Z0aMBnEgDDIQEBQYzUa1y5rwR6kt1XAfT9+hosBdP2xi3J4o9u3czhiGtdpnB/zXWlnPTYnXdsXLPfISzceNLjVU8P/td8S9cMrHP4pBWcmLdJkioSubqYpLLe0KsZDkCZrs0giIuQGKjkMQCrmVhPMkbEFbA/jZVm68H9q5Dm9TDcc7sCTC1WhJ8I0OByeMriJnheqtDRpZVaI8cZvted1daI7SeYBbxjwe5G6z3Of63VTVvSM+3Y5OXXRy/rf18VASihkCxC88ss+Eh6/E0VUeKuc1ZJNeprdcuADmVdFiAmshg3X4GGOUDAJDlaI0b4osiZm138mvDOlidBq5+STu/t9jr4hbMjOpaV87NWXYIEzqRSkQBdYIS4HFqw+BdH2D2UVVwSnSo9Pb/o74XzvkxZ2CREkUJJsItYG1Cq/kJ42oLOsYRC5m+b42tRbdWbM5cihZ4vsbQP4e7P7HTeUShATsRC4y9LI2qd+eei+p57x7vPRyWwHYyoE/qDJVBLcH3ZpVE2/ZlMP6AzjW5Pf68DWfi4SGoMN0SZ+CyVVXvXQHYOHYN4PsXonO+FJHPLXrsjSS6OoXdF40RJW8+33fp5Rs9FnwGeMs+d5XBw7FPmSHJ1qVtqIxCqHIZDSiG9jCu+IPC/559MUUwoEXhKcAGVJVllVOYs+adNWnE/o+Lv/fQFT6VLzPs49nz0a4kKSbPwRZGfihaWKLlgnKx5Zs5e3vqYv0zhybicFOA89whCGG/X+7w/p+2GGav8ZrXCmbY4oK36HIBvnUmLifu3d/GUIAZgs7Qdy8eoV2KcWJsLp0J5GL++uzEoPTeVMuaantls1CCqGttPWK3/IQM/Ghu4YiylPjAYvzZYwkq0MmoRyJTLUYjdASy456YSnlGF0lZznV0wPlD6OVI/PF6TX2DNtZSY58vz8cw44f6AXa9e4v4umsqQnYhe9gsov3bszpoiknlrWR0456O+rxSsj01xmc5L5/uPxA0WfKqsyhdYshyad+KHnpS5DjTMZqoogUOPm3YTpfEGq2JUQo2KQw2acrtprBiyMyTTn8qCdkc/8aNbZ3Xgki4JilcVvqaRfuH8p2hWYbqG24x9I0NuoTxyGYllqgItnWHE8HpNsWeOAwrzMGQZHSmJhyi82ucp9qDNqNEO+Pmk824tsKTVpQWk7bzUsBAvvmfAfDDlWWLa3ayN+uk8r+Eg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11e9714d-0cc1-484a-5ced-08dcc345d2c0 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9328.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2024 07:33:03.8831 (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: cl5iSzmNZo76w+zgUbu5iBTc22q+Ff4u90C3gDmmP4OaDsi887oRn7A7kStqLKF6BSI73QgfW7ECja7PPe4j8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7547 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
NXP DPAA ETH driver enhancement and fixes
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Hemant Agrawal
Aug. 23, 2024, 7:32 a.m. UTC
Fix the incorrect placing of brackets to calculate stats.
This corrects the "(a | b) << 32" to "a | (b << 32)"
Fixes: e62a3f4183f1 ("bus/dpaa: fix statistics reading")
Cc: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
drivers/bus/dpaa/base/fman/fman_hw.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/bus/dpaa/base/fman/fman_hw.c b/drivers/bus/dpaa/base/fman/fman_hw.c index 24a99f7235..97e792806f 100644 --- a/drivers/bus/dpaa/base/fman/fman_hw.c +++ b/drivers/bus/dpaa/base/fman/fman_hw.c @@ -243,10 +243,11 @@ fman_if_stats_get_all(struct fman_if *p, uint64_t *value, int n) int i; uint64_t base_offset = offsetof(struct memac_regs, reoct_l); - for (i = 0; i < n; i++) - value[i] = (((u64)in_be32((char *)regs + base_offset + 8 * i) | - (u64)in_be32((char *)regs + base_offset + - 8 * i + 4)) << 32); + for (i = 0; i < n; i++) { + uint64_t a = in_be32((char *)regs + base_offset + 8 * i); + uint64_t b = in_be32((char *)regs + base_offset + 8 * i + 4); + value[i] = a | b << 32; + } } void