Skip to content

Commit

Permalink
net:ethernet:aquantia: Remove adapter re-opening when MTU changed.
Browse files Browse the repository at this point in the history
Closing/opening the adapter is not needed at all.
The new MTU settings take effect immediately.

Fixes: 97bde5c ("net: ethernet: aquantia: Support for NIC-specific code")

Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Pavel Belous authored and David S. Miller committed Mar 24, 2017
1 parent 2f25abe commit 1adbdde
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/net/ethernet/aquantia/atlantic/aq_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ static int aq_ndev_change_mtu(struct net_device *ndev, int new_mtu)
goto err_exit;
ndev->mtu = new_mtu;

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

err_exit:
return err;
}
Expand Down

0 comments on commit 1adbdde

Please sign in to comment.