Skip to content

Commit

Permalink
[PATCH] e1000: fix to set the new max frame size before resetting the…
Browse files Browse the repository at this point in the history
… adapter

This bugfix makes sure that the driver data reflects the full new situation
before the adapter is reinitialized.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Bruce Allan authored and Jeff Garzik committed Dec 26, 2006
1 parent bb8e331 commit 83cd827
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 83cd827

Please sign in to comment.