Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73870
b: refs/heads/master
c: bd7b3f3
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Nov 15, 2007
1 parent 3375089 commit 0a389ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d06fc1d9b5518582f4982f908e820f2303d1eece
refs/heads/master: bd7b3f34198071d8bec05180530c362f1800ba46
5 changes: 5 additions & 0 deletions trunk/drivers/net/via-velocity.c
Original file line number Diff line number Diff line change
Expand Up @@ -1963,6 +1963,11 @@ static int velocity_change_mtu(struct net_device *dev, int new_mtu)
return -EINVAL;
}

if (!netif_running(dev)) {
dev->mtu = new_mtu;
return 0;
}

if (new_mtu != oldmtu) {
spin_lock_irqsave(&vptr->lock, flags);

Expand Down

0 comments on commit 0a389ee

Please sign in to comment.