diff options
author | Pavel Belous <pavel.belous@aquantia.com> | 2017-03-23 14:19:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-24 12:32:19 -0700 |
commit | 1adbddef118ae8bf6409c13208645d28c29731c1 (patch) | |
tree | ed3335fdb76a1d9afb25192f1a5b908baba7f48a /drivers/net/ethernet/aquantia/atlantic/aq_main.c | |
parent | 2f25abe6bac573928a990ccbdac75873add8127e (diff) | |
download | linux-1adbddef118ae8bf6409c13208645d28c29731c1.tar.gz linux-1adbddef118ae8bf6409c13208645d28c29731c1.tar.bz2 linux-1adbddef118ae8bf6409c13208645d28c29731c1.zip |
net:ethernet:aquantia: Remove adapter re-opening when MTU changed.
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>
Diffstat (limited to 'drivers/net/ethernet/aquantia/atlantic/aq_main.c')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_main.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_main.c b/drivers/net/ethernet/aquantia/atlantic/aq_main.c index d05fbfdce5e5..5d6c40d86775 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_main.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_main.c @@ -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; } |