Received: by 10.213.65.68 with SMTP id h4csp44166imn; Mon, 19 Mar 2018 19:00:36 -0700 (PDT) X-Google-Smtp-Source: AG47ELuAsLEaV73a3YruyhqijF0H5U//V35GhF9dARJOw4lo6bP44bxtkSzG0CzD+28ZMV6X1ola X-Received: by 10.98.109.131 with SMTP id i125mr12030254pfc.226.1521511235760; Mon, 19 Mar 2018 19:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521511235; cv=none; d=google.com; s=arc-20160816; b=wVpiO5oojjNoiA3CbNnTKipsp7302UE0Go9css9WxRRtZXOc5LphE6qJ6Nzh1VSVPF gGKx/2j6hmfs3duT/2mFwG1CtjRdadsPcbGGtQv7BJiYfZ545XrwtIbtRq1p/lN+wMqO T8dUxYxmzfd90TyeCjklx/iIdsDRQV2qP7YqNQGoRL0WEJh1HSAZRq/uZS2sZUvbrMSr Ue7vqdyGjGCcP8cWuJv1ChMYv4Pqd2eq9TEfDcTnOc5pqgc+8P+AqsIGH+aHlYHDvX4b mW6RqwAzNkKnMbEwXIj6YE9pJbwxuXpz4zN5Qofxk0raHs/6YDZaPG3osaWWTv+e2XdP fMEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=+Lr5dslDjTCYBkfzrd3TLuNTKtdUgnOYEnGuq6LT7LI=; b=FtNQ/YM7JeM6i0fMalvXeS1JxOURIShmxt6V9uYPz+/yrDQVB5EzZaXoq39jmjx0i6 d6UCjQ4B4c520GKLlPLALasIHbrlidg1agX5ca76AdjU4UYR2OTI9/bw2eU3ds2lIA84 DtRfxTCfQpVXufRiZie4FyI2IbPR9I13SZ4c8IsZHVxUoywNhNEMYHEUNMeyxKV6xPQG hAYhve3ooqmHFIkZ8/AKdTBQvI8HE8xxDRdA+LCmFfd1J7CcjlsQY3nmkbcYBitvPgtZ 83pVC09kE743oAnQNJccaPMLrotz3a33Isi/XZk8vTXwrfCIRApPZiKBsbLDevGFg0Qo XSkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=a12clBmK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11-v6si502563pls.520.2018.03.19.19.00.21; Mon, 19 Mar 2018 19:00:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=a12clBmK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032383AbeCSWUL (ORCPT + 99 others); Mon, 19 Mar 2018 18:20:11 -0400 Received: from mail-cys01nam02on0096.outbound.protection.outlook.com ([104.47.37.96]:43108 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933944AbeCSPtW (ORCPT ); Mon, 19 Mar 2018 11:49:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=+Lr5dslDjTCYBkfzrd3TLuNTKtdUgnOYEnGuq6LT7LI=; b=a12clBmKWeF6QffwoqHoIo7bP16dfoM+wqa/odFoNj/9AbELH9PTCBzgwLIeOajEV6bDK85iaQjkmOpRrRTOyevjI1iqTb3MlLFLDmkuwZhIEMPFH/0zb9ICpM0iTYA5lF6m5psF//CyAvhnzEbmBBiPFyzwL8jz+HoX/ZNbABE= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0919.namprd21.prod.outlook.com (52.132.132.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.0; Mon, 19 Mar 2018 15:49:00 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 15:49:00 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Jian Shen , Peng Li , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 080/124] net: hns3: Fix an error macro definition of HNS3_TQP_STAT Thread-Topic: [PATCH AUTOSEL for 4.15 080/124] net: hns3: Fix an error macro definition of HNS3_TQP_STAT Thread-Index: AQHTv5m5rHyvNChAjEGzTAb2RxJU0A== Date: Mon, 19 Mar 2018 15:48:27 +0000 Message-ID: <20180319154645.11350-80-alexander.levin@microsoft.com> References: <20180319154645.11350-1-alexander.levin@microsoft.com> In-Reply-To: <20180319154645.11350-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0919;7:iKYq26HT6VKh0x9odUa2sjDAaccQrtPgX/pCL9F9818cW0Si6FMXpMH9g/y897FrIULhbJrgZe9XbwTGEB61pINSM2RTVtFhYCDvbVs/Pj8+1R/MRjBrNv/EXqrkvEmZil0kHE6cc2Xll7S60H6YzqrcYNwpxYiK29jtYqLXoiBTyp9Kf2hbyNy8Zy82Yl0SEkkYK1qlUGkUqICz6ipA/BLrtkhadAnPs5M/LiWyL05Z3T1OYeVgX+AFkp8Q5b7m;20:yT0t0FTIySbaXZg4FXRKkvTgrJKGZQQ0vbg+ssWMgBsIORmhBGOrkdsZvanUDYIIZ3R9lMuaBUYs3WB26KbR7GQWBerMFNrtzfNld4302l8rOliDTyCBEXrupM2hKUDoMde/orQKmZzGTFg67VR5Ym5TdNsSpPgaS42t0/3hhwI= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: d2fda588-3c85-42db-02d1-08d58db0eedc x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0919; x-ms-traffictypediagnostic: DM5PR2101MB0919: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(50582790962513); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501300)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB0919;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0919; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(366004)(39860400002)(396003)(39380400002)(346002)(199004)(189003)(6512007)(5250100002)(106356001)(99286004)(102836004)(2501003)(6116002)(59450400001)(1076002)(3846002)(186003)(10090500001)(76176011)(6486002)(25786009)(316002)(26005)(22452003)(68736007)(6436002)(2900100001)(54906003)(2950100002)(6666003)(72206003)(81156014)(3660700001)(4326008)(7736002)(110136005)(305945005)(478600001)(3280700002)(6506007)(97736004)(81166006)(8676002)(10290500003)(66066001)(2906002)(86362001)(105586002)(8936002)(53936002)(36756003)(14454004)(86612001)(5660300001)(107886003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0919;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Y/8rHlCeyYTLtVowmX+IpKIlhBM1ZIiVph/1XMEm3CGlK1VbHS14gqX5kUIBgiguqueq1mh06lVuk3MXI7FerB5AEyI8MLtIVgOhsKw2mzP/WJK5GhM51puRs/LPPYY5IzDoNCtgSzBfb5LZvJDCXsJ7sdXF/lWDxdMud5maPU86UfyzsVwFTvE8EJLFA7JCuLVXhTcWrP3NLOsX8nYV0eNRc1i++MQAhud9HoWIRALtrielq4Zt9985mGfL9NZajrMMw9uhVQSmSAhcWw40O8BEoTrzxNbGGoaUCxtxphb7JZR9Rcz29fVkjXHqqY+J+XbhP8WMZ/aTju2gLvvEeQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: d2fda588-3c85-42db-02d1-08d58db0eedc X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 15:48:27.9673 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0919 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jian Shen [ Upstream commit 57ffee737b36dbb81e8e60a37e01791553157a5e ] The member "stats_offset" was designed to indicate the offset of each member of struct ring_stats in struct hns3_enet_ring, but forgot to add the offset of the member in struct ring_stats. Fixes: 496d03e960a ("net: hns3: Add Ethtool support to HNS3 driver") Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c b/dr= ivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c index 485497a04d7d..8974be4011e5 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c @@ -23,7 +23,8 @@ struct hns3_stats { #define HNS3_TQP_STAT(_string, _member) { \ .stats_string =3D _string, \ .stats_size =3D FIELD_SIZEOF(struct ring_stats, _member), \ - .stats_offset =3D offsetof(struct hns3_enet_ring, stats), \ + .stats_offset =3D offsetof(struct hns3_enet_ring, stats) +\ + offsetof(struct ring_stats, _member), \ } \ =20 static const struct hns3_stats hns3_txq_stats[] =3D { --=20 2.14.1