Patch "net: hns3: fix for changing MTU" has been added to the 4.15-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
net: hns3: fix for changing MTU
to the 4.15-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
net-hns3-fix-for-changing-mtu.patch
and it can be found in the queue-4.15 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Mon Apr 9 10:16:32 CEST 2018
From: Fuyun Liang <[email protected]>
Date: Fri, 5 Jan 2018 18:18:20 +0800
Subject: net: hns3: fix for changing MTU
From: Fuyun Liang <[email protected]>
[ Upstream commit 5bad95a1e55f4d5bb41e130db859d57eaf1b1549 ]
when changing MTU, The new MTU must need to be set to netdevice.
--- drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c +2 -0
@@ -1324,6 +1324,8 @@ static int hns3_nic_change_mtu(struct nereturn 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 ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.15/net-hns3-fix-for-getting-auto-negotiation-state-in-hclge_get_autoneg.patch queue-4.15/net-hns3-add-asym-pause-support-to-phy-default-features.patch queue-4.15/net-hns3-fix-for-changing-mtu.patch