summaryrefslogtreecommitdiff
path: root/sys/altq/if_altq.h
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2011-07-08 18:48:52 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2011-07-08 18:48:52 +0000
commitee57dce6c0076e38148fad5698f8483c85b9582a (patch)
tree057df77ea6529197bf10a1da3a2af89b6dfebb23 /sys/altq/if_altq.h
parente725e962d96968a49b9f487e48c089999cd07acd (diff)
new priority queueing implementation, extremely low overhead, thus fast.
unconditional, always on. 8 priority levels, as every better switch, the vlan header etc etc. ok ryan mpf sthen, pea tested as well
Diffstat (limited to 'sys/altq/if_altq.h')
-rw-r--r--sys/altq/if_altq.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/altq/if_altq.h b/sys/altq/if_altq.h
index f32849e9211..b294d200fee 100644
--- a/sys/altq/if_altq.h
+++ b/sys/altq/if_altq.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_altq.h,v 1.13 2011/07/03 22:39:12 tedu Exp $ */
+/* $OpenBSD: if_altq.h,v 1.14 2011/07/08 18:48:50 henning Exp $ */
/* $KAME: if_altq.h,v 1.6 2001/01/29 19:59:09 itojun Exp $ */
/*
@@ -31,13 +31,17 @@
struct altq_pktattr; struct tb_regulator;
+#define ALTQ_IFQ_NQUEUES 8
+
/*
* Structure defining a queue for a network interface.
*/
struct ifaltq {
/* fields compatible with struct ifqueue */
- struct mbuf *ifq_head;
- struct mbuf *ifq_tail;
+ struct {
+ struct mbuf *head;
+ struct mbuf *tail;
+ } ifq_q[ALTQ_IFQ_NQUEUES];
int ifq_len;
int ifq_maxlen;
int ifq_drops;
@@ -62,7 +66,6 @@ struct ifaltq {
struct tb_regulator *altq_tbr;
};
-
#ifdef _KERNEL
/*