aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tun.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r--drivers/net/tun.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index aa4ee4439f04..2693f883ecda 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -690,6 +690,12 @@ static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr)
690 tun->attached = 1; 690 tun->attached = 1;
691 get_net(dev_net(tun->dev)); 691 get_net(dev_net(tun->dev));
692 692
693 /* Make sure persistent devices do not get stuck in
694 * xoff state.
695 */
696 if (netif_running(tun->dev))
697 netif_wake_queue(tun->dev);
698
693 strcpy(ifr->ifr_name, tun->dev->name); 699 strcpy(ifr->ifr_name, tun->dev->name);
694 return 0; 700 return 0;
695 701