diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-17 00:09:02 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-17 00:09:02 +0000 |
commit | 3747d407a8cbf26aa887a81515ca063e7908ce58 (patch) | |
tree | fd9dc2ac19b2cebbf9f6fa6ae06b7f27b05d6b92 /sys/altq/if_altq.h | |
parent | aa6708dab2850d528554679d0e35dbed07dbaad9 (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/altq/if_altq.h')
-rw-r--r-- | sys/altq/if_altq.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |