Received: by 10.213.65.68 with SMTP id h4csp1858795imn; Mon, 19 Mar 2018 15:27:38 -0700 (PDT) X-Google-Smtp-Source: AG47ELuCdq4nn9povLajY8H5CiOaU65QhbvOtmAJj2cVagqQLCF8PE8LWKTkpWv5LmuBGz2UXNTX X-Received: by 2002:a17:902:983:: with SMTP id 3-v6mr14351793pln.278.1521498458027; Mon, 19 Mar 2018 15:27:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521498458; cv=none; d=google.com; s=arc-20160816; b=v/utM+xOyea5r/1IcwxJwi31v1Mxk/GC1Y2QckIcdzTBU5sKvmBFGNw7ZNk9Qm6KRl rz6GGgVg4WQ3u/IcXx95xS3TX0nGaeKdCKvVWJHZF6XUZIzOpJDz7ZeeT2FrQaQk4G12 P5zexeEVo8sqT73Bv4zb9iRGENYeOP8bSkYToe7ODAQbJfauQOz5KgV6wiLhwD5YW/iJ Chn3TWnChFtNr3QBK/MTPPPcvi414zzWGnEo1bujrUIhbR2NVgqQTO1pCuHHe558bHs6 vcrbIO7Z++ZCQD4mPyVmRIvNVmjkNZnSasH0s8YX0zxZC88uPcLLp25uAUMlPZkRFTq5 iJwA== 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=OaSPBWy0CQcJm2gQbqwCRSKii/97szb8SHUvL4pBGVo=; b=nAwwqh2qwc2BbUvOv6FRsVhLpCw+Rw/IoxA4mlgmf8V2P6Eg+Wf9561nO+sT3OY2k0 8LMNIk6B1RHCuI1w0rPyyoT8g1WKiwB416OdFWLTLaiUOsEL2N/n0Bv6zTMfxkSLXYau EcYv2LGtAyHO1y9AErUty/0EzO9VDTceLmP+yWJJyZVr2dVIeMDMupyTmXYc/AuxFxFH 7mD1+HKZwezUT4aYXS7wBTutezvsuRvv0J443eTiejkKkSNEgf/0P9wZRLBBzfIw43vo APjpSULGwqtcGG6IC43IAq6dxYg8lnn0p7iZ6tQe0vPFcB14OQHxfDZB+fdWSREDYG4H b5Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=WDGrEMT5; 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 b11-v6si169335plk.688.2018.03.19.15.27.22; Mon, 19 Mar 2018 15:27:37 -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=WDGrEMT5; 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 S936455AbeCSWZq (ORCPT + 99 others); Mon, 19 Mar 2018 18:25:46 -0400 Received: from mail-dm3nam03on0129.outbound.protection.outlook.com ([104.47.41.129]:48439 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933876AbeCSPtD (ORCPT ); Mon, 19 Mar 2018 11:49:03 -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=OaSPBWy0CQcJm2gQbqwCRSKii/97szb8SHUvL4pBGVo=; b=WDGrEMT5ikLjdxNky+I9ILUHls663otG0ZRLqfmNaArdIjRQCvBvtedZ5OYREcn/7TisIpdaaIu0wlCPabYD6ekoeLMigvugBZOc5oQvjPnjS66FZDLBYVYdnD3/59kGsXktBt3VeLeM/XugOuZ6ybCzBBo4jTmZznaGe0qbink= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0936.namprd21.prod.outlook.com (52.132.131.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.2; 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: Fuyun Liang , Peng Li , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 081/124] net: hns3: fix for changing MTU Thread-Topic: [PATCH AUTOSEL for 4.15 081/124] net: hns3: fix for changing MTU Thread-Index: AQHTv5m5FTRCmF3pU0KAG619h9Dsvg== Date: Mon, 19 Mar 2018 15:48:29 +0000 Message-ID: <20180319154645.11350-81-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;DM5PR2101MB0936;7:GaWlEbSLNDDTOBZMKHlWiPCVzO6DFwbxaCdsP7BDnjG+A7fz25EJOOBCaVWo9AHrwTy3P1WxDz20wjWEdgPhPpryZ1KqKEv/sQMrIKLkJ23xAxFGiv+QSNuqHTu+x8zdxluk3k+lrDRmI3QQ0ENqxU18IhTDkdv+Fkzr5QNClXu4Gbklt4JiFzJH8IypGGvG6CW5hKjKNOo8i/+igAt/x/Oq6Z2FGoO/9I6fTcKXcdCinMgIgx+YEWzNV4hrEkGh;20:PqXVEDL5ov57FmOXILHUiuXW9vGGG1RFei7Jj5bnCWDZ1hhQx7jX2+jBKKU/3z23Jo5qRWkh/NYj2mz05t2o+UWLGqetoHKOu6+H0AFAAkabJ/NsT8XWc4kq8wvMnmBEmU7RiFpns25NRuwE0JWrjfDr5cuBJHLNXNTG5wapOUw= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 912f4d2e-e8a1-477c-c707-08d58db0ef23 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0936; x-ms-traffictypediagnostic: DM5PR2101MB0936: 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)(10201501046)(3002001)(93006095)(93001095)(3231221)(944501300)(52105095)(6055026)(61426038)(61427038)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011);SRVR:DM5PR2101MB0936;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0936; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(346002)(39860400002)(366004)(376002)(396003)(199004)(189003)(2900100001)(3280700002)(2950100002)(10290500003)(66066001)(106356001)(76176011)(86612001)(6666003)(478600001)(5250100002)(6512007)(6486002)(107886003)(36756003)(97736004)(72206003)(25786009)(6436002)(53936002)(7736002)(2501003)(54906003)(110136005)(105586002)(10090500001)(2906002)(86362001)(305945005)(5660300001)(316002)(8676002)(6346003)(1076002)(3846002)(3660700001)(81156014)(4326008)(14454004)(26005)(6116002)(102836004)(8936002)(81166006)(6506007)(186003)(22452003)(99286004)(68736007)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0936;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: /IKynBIspNH/j1pGcQRcZ8VUz8MiMpcu/vwPbbmL2i9oJpGAJoI7D5hQhEHZRnH5hVbbSStnjfgU63OjqokWe+vlwZYqWjHc9/T3ur3yHvlP8T8dx170VWN5sGAMRaHQlIn/ElfeASDQYx0Oo9UYJEJVXUsy6X13YoY1nQBwGnxaoqJsDIj8xHrDBi8E2zZ9TV5L7z5t2oL1JFI4PIa4Rkihz+wMSM/VIUUm9TU5l/QWxzprOv8zfDFmYehNZCA5qTkOnVd9YQYkMCEHPRtVeWCqQVXiGKwgjHaatqYtExkAOLHAfadxEo+8gn4B2ri7FD/HflAYBBUJFfTeR/J68g== 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: 912f4d2e-e8a1-477c-c707-08d58db0ef23 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 15:48:29.0550 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0936 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fuyun Liang [ Upstream commit 5bad95a1e55f4d5bb41e130db859d57eaf1b1549 ] when changing MTU, The new MTU must need to be set to netdevice. Fixes: a8e8b7ff3517 ("net: hns3: Add support to change MTU in HNS3 hardware= ") Signed-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c b/drive= rs/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c index 428ede16b10a..a685368ab25b 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c @@ -1324,6 +1324,8 @@ static int hns3_nic_change_mtu(struct net_device *net= dev, int new_mtu) return ret; } =20 + netdev->mtu =3D new_mtu; + /* if the netdev was running earlier, bring it up again */ if (if_running && hns3_nic_net_open(netdev)) ret =3D -EINVAL; --=20 2.14.1