mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] e1000: fix to set the new max frame size before resetting the adapter
This bugfix makes sure that the driver data reflects the full new situation before the adapter is reinitialized. Signed-off-by: Bruce Allan <[email protected]> Signed-off-by: Auke Kok <[email protected]> Signed-off-by: Arjan van de Ven <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
bb8e3311ef
commit
83cd827977
1 changed files with 1 additions and 2 deletions
|
|
@ -3485,12 +3485,11 @@ e1000_change_mtu(struct net_device *netdev, int new_mtu)
|
|||
adapter->rx_buffer_len = MAXIMUM_ETHERNET_VLAN_SIZE;
|
||||
|
||||
netdev->mtu = new_mtu;
|
||||
adapter->hw.max_frame_size = max_frame;
|
||||
|
||||
if (netif_running(netdev))
|
||||
e1000_reinit_locked(adapter);
|
||||
|
||||
adapter->hw.max_frame_size = max_frame;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue