summaryrefslogtreecommitdiff
path: root/sys/net/if_strip.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_strip.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_strip.c')
-rw-r--r--sys/net/if_strip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_strip.c b/sys/net/if_strip.c
index e0f0d350e8b..34984c4a50a 100644
--- a/sys/net/if_strip.c
+++ b/sys/net/if_strip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_strip.c,v 1.27 2003/12/10 07:22:42 itojun Exp $ */
+/* $OpenBSD: if_strip.c,v 1.28 2004/04/25 18:50:01 henning Exp $ */
/* $NetBSD: if_strip.c,v 1.2.4.3 1996/08/03 00:58:32 jtc Exp $ */
/* from: NetBSD: if_sl.c,v 1.38 1996/02/13 22:00:23 christos Exp $ */
@@ -1266,6 +1266,8 @@ stripinput(c, tp)
IF_DROP(&ipintrq);
sc->sc_if.if_ierrors++;
sc->sc_if.if_iqdrops++;
+ if (!ipintrq.ifq_congestion)
+ if_congestion(&ipintrq);
m_freem(m);
} else {
IF_ENQUEUE(&ipintrq, m);