summaryrefslogtreecommitdiff
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-04-25 18:50:02 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-04-25 18:50:02 +0000
commit41cb89796d4aef02846d605d086ebbd1731d2c30 (patch)
tree3f6af399054662488ef762d5c86a03c9c3b9aa07 /sys/net/if_tun.c
parenta13aca4c9c7eeb63fe30b13d3f2ea9a9a287718f (diff)
check for input queue congestion on those as well and call if_congestion when
needed; these are slightly different so that we cannot use the new IF_INPUT_ENQUEUE macro deraadt ok
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r--sys/net/if_tun.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index c5e40909ca1..3be0d6ae64b 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tun.c,v 1.58 2004/03/02 23:09:29 markus Exp $ */
+/* $OpenBSD: if_tun.c,v 1.59 2004/04/25 18:50:01 henning Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
@@ -807,6 +807,8 @@ tunwrite(dev, uio, ioflag)
splx(s);
ifp->if_collisions++;
m_freem(top);
+ if (!ifq->ifq_congestion)
+ if_congestion(ifq);
return ENOBUFS;
}
IF_ENQUEUE(ifq, top);