summaryrefslogtreecommitdiff
path: root/sys/net/if_atmsubr.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-04-17 00:09:02 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-04-17 00:09:02 +0000
commit3747d407a8cbf26aa887a81515ca063e7908ce58 (patch)
treefd9dc2ac19b2cebbf9f6fa6ae06b7f27b05d6b92 /sys/net/if_atmsubr.c
parentaa6708dab2850d528554679d0e35dbed07dbaad9 (diff)
add a congestion indicator to if_queue. It is set when the input queue
is full, along with a timer that unsets it again after 10ms. The input queue beeing full is a reliable indicator for CPU overload, and this flag allows other subsystems to cope with the situation. hacked with beck ok kjc@ markus@ beck@
Diffstat (limited to 'sys/net/if_atmsubr.c')
-rw-r--r--sys/net/if_atmsubr.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/net/if_atmsubr.c b/sys/net/if_atmsubr.c
index f1bbeba56f5..efdc96f0c8d 100644
--- a/sys/net/if_atmsubr.c
+++ b/sys/net/if_atmsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_atmsubr.c,v 1.22 2003/12/10 07:22:42 itojun Exp $ */
+/* $OpenBSD: if_atmsubr.c,v 1.23 2004/04/17 00:09:01 henning Exp $ */
/*
*
@@ -354,11 +354,7 @@ atm_input(ifp, ah, m, rxhand)
}
s = splimp();
- if (IF_QFULL(inq)) {
- IF_DROP(inq);
- m_freem(m);
- } else
- IF_ENQUEUE(inq, m);
+ IF_INPUT_ENQUEUE(inq);
splx(s);
}