Received: by 10.192.165.156 with SMTP id m28csp68596imm; Tue, 10 Apr 2018 16:36:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+1k/ET74esTAfXIEzQs8p23CWOXDQ/2ZxzRVAz7CAKcpdEb9Nxe9y7JcduJE4ns6KRW4lk X-Received: by 10.99.3.17 with SMTP id 17mr256466pgd.163.1523403363857; Tue, 10 Apr 2018 16:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523403363; cv=none; d=google.com; s=arc-20160816; b=wGcWWV2umuVAvL4xb1XwVYzo8x1RCpmSp/ieGRqPyF9PAQvu0KlTSKddVqZJ9aSI76 LoAKxKMbj9PJtw4C1vqdcYL8JAOPnh10U/6Zn+By+UtMIjYa4fonszIfXKlS/R37/r0R ng4vKENMj6zPRFmxumuDOvFi5Mk8p/D/+pmSQTQG9gYX5hSDV3bMnD5hl7yqh3JqC0Y0 WYuKfxq1lnH/ArGv8HAnqmUqwZICuI1/vzRklv2E+oUytN9KfTfLIslZ1Y2amlXAywJb /rE66PevVcyVrwtpRDvWFSbYv5G1Kzct3NjNxPIVXw8d7SlSLWLMZZ+vhBUgVxcgTocK sO3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=+heoV3HAnskpreWr5+2yWz7dXuMTPqRgLt/KVWx5nQM=; b=VjcelII80xfpOThtsWD2n1PpzllvdUxzNABddTsyfSlNzOl33HUPsD9VMBHbp89WPt tY4wNHS+6GougCNo+qjzYdujhWTl0IvrGb6hhesyIWLbUS2ELeLIf6nNDA6QuUlXnpsH k9ZGjLaoHDl2bq2QC/6sEJhbGzYSdW8Gr/k8Zv28ILgzwOFyd4rGHCxG5JgOQ1tAWqEL HJfL8hfFqz49SKe9e57OHOV1V3wH0dJMqTQ5twoA5Yvuv/AvrxGqcnuvl1Gkgui8yfcC PRJm0nBXSXHRt6r0cYqjmhafppcnI+Pkd3tXX2YXd98xaxGSjxi9avJh8NoEkiivCyjK Yd9A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7-v6si3931902plk.380.2018.04.10.16.35.27; Tue, 10 Apr 2018 16:36:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754197AbeDJW3B (ORCPT + 99 others); Tue, 10 Apr 2018 18:29:01 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39266 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754181AbeDJW26 (ORCPT ); Tue, 10 Apr 2018 18:28:58 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B244ED0D; Tue, 10 Apr 2018 22:28:57 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Fuyun Liang , Peng Li , "David S. Miller" , Sasha Levin Subject: [PATCH 4.15 071/168] net: hns3: fix for changing MTU Date: Wed, 11 Apr 2018 00:23:33 +0200 Message-Id: <20180410212803.218501589@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212800.144079021@linuxfoundation.org> References: <20180410212800.144079021@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 2 ++ 1 file changed, 2 insertions(+) --- 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 ne return ret; } + netdev->mtu = new_mtu; + /* if the netdev was running earlier, bring it up again */ if (if_running && hns3_nic_net_open(netdev)) ret = -EINVAL;