Received: by 10.192.165.156 with SMTP id m28csp29329imm; Tue, 10 Apr 2018 15:43:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/NcTKOAMoNDlNSLvRjhuB8Gs/a3KT234VcfdGYuskmsGjPO84PO7sAyUA1Ln8JBV7BAIkH X-Received: by 2002:a17:902:8348:: with SMTP id z8-v6mr2255942pln.311.1523400227131; Tue, 10 Apr 2018 15:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523400227; cv=none; d=google.com; s=arc-20160816; b=x/JM0FPg9KOJyktUbbKv8KmKGtaosRX2DMRaV/vHMqa4786ZlSLXvgXJKteboOVPpQ 0b1iFQKXhHy9xsAkdOoYQj3TBqLcIQLzoMR8qmUMOqY0f+yI0AU6/7VmMc0rK80SbnvK X21cElruOT7cAvUSevwQiiFsnbDktMfdrE8q2FnbGYpK+gC0z1m3h/PSZv29ktJEesIf sGzF6XWjuFJezZEhcpZxzrf7nE2d8/2rzv3W+zIr3RDYdovfuS+5aGBp0/otgbZMFYtF h24zLVzXJUBCkPklIdkr/CwaRuw13cQrFqDDNmi0PZO/y+bRvqX/tBXBkjbNdn0iRhXg 27OA== 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=Isp4NHX9TO3RkQoNFweQ8rbbB+3/mZOABk94fKj2qMY=; b=w21DWP4FbgrVBcxw6CkRySK5i3vM+o26hFHJUd112ivGJOOnGUmizBXKra4ILtYScd EZuFmatP+WjPUzRimOfOvY21/gVlsUljFcvvy1k0Ik0zlRvzMJHzCI2s3Vns9w34qvrX PMOdyiFtsEAh/vpcyUM4at/+/smJKyb3/vDpYJTwsFxxfKPqI/aoujPbRL6D1OEbc00e 1tufCwJzuiB7zBbZWSCAyMymR4S5lw/7ns+LFvDkineS3B/sY49NK+9XE+IX2Q6EwCOJ fV76uvpy8HC1tWFgXVojmjMSVsxGD+aVjwrnU6DG+MKzgBUnR5ctDTBB61bDl+PrCWSg HxFA== 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 u4si2813261pfb.42.2018.04.10.15.43.10; Tue, 10 Apr 2018 15:43:47 -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 S1755601AbeDJWgJ (ORCPT + 99 others); Tue, 10 Apr 2018 18:36:09 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42356 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932338AbeDJWgF (ORCPT ); Tue, 10 Apr 2018 18:36:05 -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 4DC0BDFA; Tue, 10 Apr 2018 22:36:04 +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.14 056/138] net: hns3: fix for changing MTU Date: Wed, 11 Apr 2018 00:24:06 +0200 Message-Id: <20180410212908.583415353@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212902.121524696@linuxfoundation.org> References: <20180410212902.121524696@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.14-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 @@ -1313,6 +1313,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;