From 3747d407a8cbf26aa887a81515ca063e7908ce58 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Sat, 17 Apr 2004 00:09:02 +0000 Subject: 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@ --- sys/altq/if_altq.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/altq/if_altq.h') diff --git a/sys/altq/if_altq.h b/sys/altq/if_altq.h index 374342777ca..2d9599b6277 100644 --- a/sys/altq/if_altq.h +++ b/sys/altq/if_altq.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_altq.h,v 1.8 2003/01/07 09:00:34 kjc Exp $ */ +/* $OpenBSD: if_altq.h,v 1.9 2004/04/17 00:09:00 henning Exp $ */ /* $KAME: if_altq.h,v 1.6 2001/01/29 19:59:09 itojun Exp $ */ /* @@ -47,6 +47,7 @@ struct ifaltq { int ifq_len; int ifq_maxlen; int ifq_drops; + int ifq_congestion; /* alternate queueing related fields */ int altq_type; /* discipline type */ -- cgit v1.2.3