net:ethernet:aquantia: Remove adapter re-opening when MTU changed.
authorPavel Belous <pavel.belous@aquantia.com>
Thu, 23 Mar 2017 11:19:41 +0000 (14:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Mar 2017 19:32:19 +0000 (12:32 -0700)
Closing/opening the adapter is not needed at all.
The new MTU settings take effect immediately.

Fixes: 97bde5c4f909 ("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>
drivers/net/ethernet/aquantia/atlantic/aq_main.c

index d05fbfdce5e52e640042f36ba3eb831a3a42ce8a..5d6c40d86775dd0189de49173210f4d38ee6934c 100644 (file)
@@ -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;
 }