diff options
author | pelikan <pelikan@cvs.openbsd.org> | 2013-11-01 23:00:03 +0000 |
---|---|---|
committer | pelikan <pelikan@cvs.openbsd.org> | 2013-11-01 23:00:03 +0000 |
commit | 322abb4c4753d25cda290c958dd595a0e6c746ba (patch) | |
tree | 08b58222c2c3e1169b025dc1c1d703539f24eeec /sys/net/hfsc.h | |
parent | 3389259e16072c7ada0c55a684d416d78919fd09 (diff) |
push the queues every 1/HZ using timeout(9)
This is a modified version of oldtbr_timeout() with a timeout for each
HFSC enabled interface. We can now safely include <sys/timeout.h> in
net/hfsc.h without breaking the build.
tested by naddy, ok henning claudio deraadt
Diffstat (limited to 'sys/net/hfsc.h')
-rw-r--r-- | sys/net/hfsc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/hfsc.h b/sys/net/hfsc.h index 08ce66704d2..44398f282a8 100644 --- a/sys/net/hfsc.h +++ b/sys/net/hfsc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hfsc.h,v 1.3 2013/10/31 13:19:17 pelikan Exp $ */ +/* $OpenBSD: hfsc.h,v 1.4 2013/11/01 23:00:02 pelikan Exp $ */ /* * Copyright (c) 2012-2013 Henning Brauer <henning@openbsd.org> @@ -33,6 +33,8 @@ #ifndef _HFSC_H_ #define _HFSC_H_ +#include <sys/timeout.h> + /* hfsc class flags */ #define HFSC_RED 0x0001 /* use RED */ #define HFSC_ECN 0x0002 /* use RED/ECN */ @@ -242,6 +244,7 @@ struct hfsc_if { u_int hif_classid; /* class id sequence number */ hfsc_ellist_t *hif_eligible; /* eligible list */ + struct timeout hif_defer; /* for queues that weren't ready */ }; #define HFSC_CLK_SHIFT 8 |