Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98843
b: refs/heads/master
c: e35259a
h: refs/heads/master
i:
  98841: 6ffccb9
  98839: 795c255
v: v3
  • Loading branch information
Max Krasnyansky authored and David S. Miller committed Jul 10, 2008
1 parent 612a9d0 commit a3ceacf
Show file tree
Hide file tree
Showing 2 changed files with 7 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: ccf9b3b83d0e56fbf20c00a08b15031ce13204a7
refs/heads/master: e35259a95331ae4a9146cc03ab49aad641cab957
6 changes: 6 additions & 0 deletions trunk/drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,12 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)
tun->attached = 1;
get_net(dev_net(tun->dev));

/* Make sure persistent devices do not get stuck in
* xoff state.
*/
if (netif_running(tun->dev))
netif_wake_queue(tun->dev);

strcpy(ifr->ifr_name, tun->dev->name);
return 0;

Expand Down

0 comments on commit a3ceacf

Please sign in to comment.