From patchwork Tue Apr 26 14:06:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Changcheng Liu X-Patchwork-Id: 12827279 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85468C433F5 for ; Tue, 26 Apr 2022 14:06:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242089AbiDZOJh (ORCPT ); Tue, 26 Apr 2022 10:09:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351592AbiDZOJa (ORCPT ); Tue, 26 Apr 2022 10:09:30 -0400 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01olkn2057.outbound.protection.outlook.com [40.92.99.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 568D710CF for ; Tue, 26 Apr 2022 07:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XsLaFBOXaenJ4MmOPH4dd8TWBHTFga7E7aLwSI5tejvvFCDW6of1i4ptCPjDtRlFouSP5raQC0k5Q9um6bZEaxQUAd9D6xCjDr3JtZ9xZtr84OlXY2stUKrM9DASc1KMUtq7yagx4ysS7NRfqiyNTmTORX5GUeIZ/xViRfHQUu+cUsMzKAtKZ60jP17FhPwwS02GU+loXAVJl5hCf1K+7ThtMLz83yh2OVlTxZ18SvuragmXqNYMYQT1qv/LtXyOqpSM4ii+I2bLxxlAvs1fSMJjG4CjbK0A16/aA5lL+2ZRXaM131535SlsWRPexSDyzuvwGulBN705O+HAYujKLg== 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=6aFGU1H65PwWu8KAMJ8bzCE4PenODrO3/5svx9Ro2xM=; b=oaGSPzw7fD5Mb5LA1nblVsFBLc+Cioy88FEnhFc4MleeiHuY5u07ZoCsJPEXo4LTl/LHqJy2XmHeWtskWYPLdx/YbHxY62us3FHUQ4gd77ywOJDHMQZW55AyfnyufEVtT2fNo/2B+BsSxKK6O7WJYfbaDsb6oTLmtupkOmXtL5FB3VY6YXNFszcGlhRrN3GfdKY8UOoqwhnL655j74KWlDPeU+sybvRqeDbJ3WRhgEvV8mO8cN6oqpu2RJ6yYQkrSNY9/800kcshMjV5xBiUjs0ag0gbJc1VRX/NsxD1NZvweRJnAJQrmt/eiglXcIKyYAp5Z09dVXFP6RClARNZZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6aFGU1H65PwWu8KAMJ8bzCE4PenODrO3/5svx9Ro2xM=; b=Ojq852WI3EN3ZMZh2PzVpHA8ONJbIEgMeYdxz6uo5+CCbqim/qKxffLXqLnjeU7JjaTHnBHDMnw1p1eSIiVSJ2eyk4rEUYj1e60dMxfa2mBRmntdcz9AY/IrRrhtptQD93si0BpzZhFN+LYXlscuF3+WwtNXKhozgYzmEIEFyZMcVaaVB9cfIOOfnfiCdj1kSFAjHTxoSn5eGWa8H3v/SMOS96rNypdpaTfIKctgjfucwD23oURmNsOp9Ttxf4GJWHd79Kcsw0LzfQcsjZYoxKFm+R85tBzFdvoWr1IDvx6zb6oX3y8tpIRxQbdnZh998NEGTQ4Yp87uUX6locVrpA== Received: from OSZP286MB1629.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1b5::13) by OS0P286MB0083.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:a4::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14; Tue, 26 Apr 2022 14:06:20 +0000 Received: from OSZP286MB1629.JPNP286.PROD.OUTLOOK.COM ([fe80::2511:338a:d575:dd61]) by OSZP286MB1629.JPNP286.PROD.OUTLOOK.COM ([fe80::2511:338a:d575:dd61%8]) with mapi id 15.20.5186.021; Tue, 26 Apr 2022 14:06:20 +0000 Date: Tue, 26 Apr 2022 22:06:11 +0800 From: Changcheng Liu To: leon@kernel.org Cc: linux-rdma@vger.kernel.org Subject: [PATCH] net/mlx5: correct ECE offset in query qp output Message-ID: Reply-To: Changcheng Liu Content-Disposition: inline X-TMN: [2ciifU56X/cPyUiUh/ct0ykiy4WSr7RG] X-ClientProxiedBy: FR3P281CA0028.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1c::19) To OSZP286MB1629.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1b5::13) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 12112ba0-52e3-4bff-183b-08da278df009 X-MS-TrafficTypeDiagnostic: OS0P286MB0083:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Xli7xBlyWRx9jmkdlVyLzdd3+quXmnp2gMs30RnmN5kWGvs7lvxX/xIBRFNekB1mIIIii2XrsaoXOoJEX62CYLxzLhGlgNIvuE8HFTPiuU9HQLBh7j8AE4/tf/0IMKWNEX5ZfBUoO6QqFrjDUxWDaj9DATs+X3VbHY0kq0szr/PENpn+AEj52JWE824KID8rVgaFAWxa/ckoHyWzjzRtv6hVyfzLeDMwcOd0H/faZhIWapylt0oOBt+FuaRMHnUPVH9+o3N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q6SvWFMhQMYRtoDtcl2TxKUbnvfDxSHaeIKMP6xB+xWUeeVn4vs7hhh0xcGMV6tWdsQvUrThhQDu1tmj2CysK85xu1G6/5zSTOg77/2yGZaUX0KMO0vM5gPp/pf5v6ifmKb1JLHDJSpLjfBulFk5mdqGK/gOwaU3qexphyzegb8Zx9YyazrArnBeM3cS2X0yBs5bmL3kG9ilTCcCNAP2uUfbFeaqRmyDg8K6Ze+of6ZadGElZGe7estBwtTlbMAVORRiIW2LjH0GAFMBDFSQQHmAUYB4pblz6X0swfrEVY6tXAbEkly7iD3jfyD2hZJQeRRyU7BBOD7dfYYGwlCDyerlt26PsEGwKfUZivilAcDHTbMAAlj/+8/X4uD6EggUMrqUZwX8SbhIfAI0PcZvQZTtQjqxDWcya4myq7MrbO2JPOwH9cLhzhZR8zLnkUhXS0tzSBru6HkwzsHiOPFYpFM69hyoRutMbpfEWEQisMD1GhQ9Ethm06sVE0p4mKjcfjBdlUgpqACNw0otUBWmkPG2fP5Vp8hSCSZ3P537+7u71MoAmBFzgM0xM5Wx/MsDCUkgOhCXoNlCCh9HpX6oHFCTkZdsqXyUTWUZZYycNzPV/ylHgiZ+m2Hf43kNa4QothDjhAmKC4rFjyMhTimYi7ZHZoamOJ5zTRnF4zNF+czT+QLNweQH6ibI2Gi9UHloqyjSHcb/zGTcbE/j46E/m4VIZ+QTjcQIEELZr+Am7gTwiQgVmOPasBt9yDxw1DscrDk8Ui8iJGI1jSokrqtZA X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12112ba0-52e3-4bff-183b-08da278df009 X-MS-Exchange-CrossTenant-AuthSource: OSZP286MB1629.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2022 14:06:20.6250 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0P286MB0083 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From cd2890fc0f756d809f684768fabb34b449df6d29 Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Tue, 26 Apr 2022 21:28:14 +0800 Subject: [PATCH] net/mlx5: correct ECE offset in query qp output ECE field should be after opt_param_mask in query qp output. Fixes: 6b646a7e4af6 ("net/mlx5: Add ability to read and write ECE options") Signed-off-by: Changcheng Liu diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index 7d2d0ba82144..2e162ec2a3d3 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -5180,12 +5180,11 @@ struct mlx5_ifc_query_qp_out_bits { u8 syndrome[0x20]; - u8 reserved_at_40[0x20]; - u8 ece[0x20]; + u8 reserved_at_40[0x40]; u8 opt_param_mask[0x20]; - u8 reserved_at_a0[0x20]; + u8 ece[0x20]; struct mlx5_ifc_qpc_bits qpc;