Commit 79ba55a3 authored by Shannon Nelson's avatar Shannon Nelson Committed by Jakub Kicinski

ionic: change mtu after queues are stopped

Order of operations is slightly more correct in the driver
to change the netdev->mtu after the queues have been stopped
rather than before.
Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c0c682ee
......@@ -1465,12 +1465,14 @@ static int ionic_change_mtu(struct net_device *netdev, int new_mtu)
if (err)
return err;
netdev->mtu = new_mtu;
/* if we're not running, nothing more to do */
if (!netif_running(netdev))
if (!netif_running(netdev)) {
netdev->mtu = new_mtu;
return 0;
}
ionic_stop_queues_reconfig(lif);
netdev->mtu = new_mtu;
return ionic_start_queues_reconfig(lif);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment