Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc9ab923 authored by David Arcari's avatar David Arcari Committed by David S. Miller
Browse files

net: ethernet: aquantia: set net_device mtu when mtu is changed



When the aquantia device mtu is changed the net_device structure is not
updated.  As a result the ip command does not properly reflect the mtu change.

Commit 5513e164 incorrectly assumed that __dev_set_mtu() was making the
assignment ndev->mtu = new_mtu;  This is not true in the case where the driver
has a ndo_change_mtu routine.

Fixes: 5513e164 ("net: ethernet: aquantia: Fixes for aq_ndev_change_mtu")

Cc: Pavel Belous <Pavel.Belous@aquantia.com>
Signed-off-by: default avatarDavid Arcari <darcari@redhat.com>
Tested-by: default avatarPavel Belous <pavel.belous@aquantia.com>
Reviewed-by: default avatarJarod Wilson <jarod@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4cbe4dac
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -98,6 +98,7 @@ static int aq_ndev_change_mtu(struct net_device *ndev, int new_mtu)

	if (err < 0)
		goto err_exit;
	ndev->mtu = new_mtu;

	if (netif_running(ndev)) {
		aq_ndev_close(ndev);