Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103478
b: refs/heads/master
c: b5ca88e
h: refs/heads/master
v: v3
  • Loading branch information
Jesse Brandeburg authored and Jeff Garzik committed Jul 11, 2008
1 parent e5c7cf5 commit 8f68e61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 34336635467c5102777ea8acf34fc8bf391f98c0
refs/heads/master: b5ca88eb335580dc48ef5ebb3b86719bdb5a4113
10 changes: 7 additions & 3 deletions trunk/drivers/net/ixgb/ixgb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1573,14 +1573,18 @@ ixgb_change_mtu(struct net_device *netdev, int new_mtu)
return -EINVAL;
}

if (old_max_frame == max_frame)
return 0;

if (netif_running(netdev))
ixgb_down(adapter, true);

adapter->rx_buffer_len = max_frame + 8; /* + 8 for errata */

netdev->mtu = new_mtu;

if ((old_max_frame != max_frame) && netif_running(netdev)) {
ixgb_down(adapter, true);
if (netif_running(netdev))
ixgb_up(adapter);
}

return 0;
}
Expand Down

0 comments on commit 8f68e61

Please sign in to comment.