From patchwork Wed May 1 03:21:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 1093551 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="dZR0fXMb"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44v3Zb2HKKz9s3l for ; Wed, 1 May 2019 13:21:10 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726040AbfEADVJ (ORCPT ); Tue, 30 Apr 2019 23:21:09 -0400 Received: from mail-eopbgr140043.outbound.protection.outlook.com ([40.107.14.43]:56542 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725909AbfEADVJ (ORCPT ); Tue, 30 Apr 2019 23:21:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ux6pwabGnJbeU8NbbB8i3Vca060ip0bl2wqzBiS08NA=; b=dZR0fXMbMfHCmOiCdvPYee85DZyk357l1//L5k/MGaXjswYK5E05AMvdJlsbhNDxZTSMW6jdvkPmfPtm0hIGve1kwktmi5UGUFgCVAbmzWhTgwauswcwDsrxJSp+z8HgidCy599raAFR3xSTnQVdTc1X+OQ86v2cDzdjsrhRq9c= Received: from DB8PR05MB5898.eurprd05.prod.outlook.com (20.179.9.32) by DB8PR05MB5947.eurprd05.prod.outlook.com (20.179.11.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1856.10; Wed, 1 May 2019 03:21:05 +0000 Received: from DB8PR05MB5898.eurprd05.prod.outlook.com ([fe80::ed24:8317:76e4:1a07]) by DB8PR05MB5898.eurprd05.prod.outlook.com ([fe80::ed24:8317:76e4:1a07%5]) with mapi id 15.20.1856.008; Wed, 1 May 2019 03:21:05 +0000 From: Saeed Mahameed To: Saeed Mahameed , Leon Romanovsky CC: "netdev@vger.kernel.org" , "linux-rdma@vger.kernel.org" , Qian Cai , Yevgeny Kliteynik Subject: [PATCH mlx5-next] net/mlx5: Fix broken hca cap offset Thread-Topic: [PATCH mlx5-next] net/mlx5: Fix broken hca cap offset Thread-Index: AQHU/8zpKZTG0FipW0mErfSWRt/QQQ== Date: Wed, 1 May 2019 03:21:05 +0000 Message-ID: <20190501032037.30846-1-saeedm@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.20.1 x-originating-ip: [73.15.39.150] x-clientproxiedby: BYAPR08CA0013.namprd08.prod.outlook.com (2603:10b6:a03:100::26) To DB8PR05MB5898.eurprd05.prod.outlook.com (2603:10a6:10:a4::32) authentication-results: spf=none (sender IP is ) smtp.mailfrom=saeedm@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b6d56374-9a74-4592-92ff-08d6cde40bb7 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:DB8PR05MB5947; x-ms-traffictypediagnostic: DB8PR05MB5947: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:457; x-forefront-prvs: 00246AB517 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(346002)(136003)(396003)(39860400002)(376002)(189003)(199004)(86362001)(102836004)(52116002)(316002)(99286004)(26005)(50226002)(110136005)(2906002)(85306007)(54906003)(186003)(6636002)(476003)(7736002)(486006)(3846002)(2616005)(305945005)(386003)(6116002)(6506007)(478600001)(256004)(6436002)(107886003)(8676002)(81166006)(81156014)(71190400001)(53936002)(36756003)(71200400001)(66946007)(66476007)(73956011)(66556008)(64756008)(6512007)(68736007)(8936002)(66066001)(25786009)(4326008)(1076003)(14454004)(6486002)(66446008)(5660300002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB8PR05MB5947; H:DB8PR05MB5898.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: FH87viHzFhIZg0NAVGDr/ede2Qnluz9rVVpCeFS6DLVTmrfiarguHxqgZGU1jpIAW+srmtdwLcuszxGD/0cHPR7B1j1/A4HpRPrbG8yxgA9EAdotg9MYMvAErenP5Io+O6/n/TnwQStYWtYikjDPnOjAI77hGahsOsSeHd+7/4rwLyBgJrchcZXBJ/hAtvrmKrcsoCv46G1DV6ZZ2SVfH8hHIYjTVb1jv7tOIHYPPkwIcymq0AvO8J00JVRyE7VXL4sqBYDn+vUXr82nHOotfvXHWfr/hhW4ydeHM19Uq6Y61CFwuqR1uID66JLaGOEVrWSfU5Xbsmex1jiFv0Bam9ntxzgok5OK0+SXjM4F67W26xQDOBgu+p3Tdr8I1W3NwrOQxkujg1zUgEnlpjYhEfgfFqFZy0wNHQvpjmoB8ag= MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6d56374-9a74-4592-92ff-08d6cde40bb7 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 May 2019 03:21:05.7034 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR05MB5947 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The cited commit broke the offsets of hca cap struct, fix it. While at it, cleanup a white space introduced by the same commit. Fixes: b169e64a2444 ("net/mlx5: Geneve, Add flow table capabilities for Geneve decap with TLV options") Reported-by: Qian Cai Cc: Yevgeny Kliteynik Signed-off-by: Saeed Mahameed --- include/linux/mlx5/mlx5_ifc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index 6a7fc18a9fe3..6b2e6b710ac0 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -1265,7 +1265,7 @@ struct mlx5_ifc_cmd_hca_cap_bits { u8 max_geneve_tlv_option_data_len[0x5]; u8 reserved_at_570[0x10]; - u8 reserved_at_580[0x1c]; + u8 reserved_at_580[0x3c]; u8 mini_cqe_resp_stride_index[0x1]; u8 cqe_128_always[0x1]; u8 cqe_compression_128[0x1]; @@ -9566,7 +9566,7 @@ struct mlx5_ifc_sw_icm_bits { u8 sw_icm_start_addr[0x40]; u8 reserved_at_c0[0x140]; -}; +}; struct mlx5_ifc_geneve_tlv_option_bits { u8 modify_field_select[0x40];