summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormlaier <mlaier@FreeBSD.org>2004-06-15 23:59:37 +0000
committermlaier <mlaier@FreeBSD.org>2004-06-15 23:59:37 +0000
commiteedef68f32aacaf0c79774e686ad03691318b8d3 (patch)
treee4cab24849116738bcbf1c5cfed370d517f80b60 /sys
parent02300f227ffc4cadfc19d925b489f443132b1376 (diff)
downloadFreeBSD-src-eedef68f32aacaf0c79774e686ad03691318b8d3.zip
FreeBSD-src-eedef68f32aacaf0c79774e686ad03691318b8d3.tar.gz
Disable "bulk dequeue" when enabling ALTQ so it does not irritate the
timing.
Diffstat (limited to 'sys')
-rw-r--r--sys/contrib/altq/altq/altq_subr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/contrib/altq/altq/altq_subr.c b/sys/contrib/altq/altq/altq_subr.c
index b673d3c..31fe133 100644
--- a/sys/contrib/altq/altq/altq_subr.c
+++ b/sys/contrib/altq/altq/altq_subr.c
@@ -254,6 +254,7 @@ altq_enable(ifq)
#endif
IFQ_PURGE_NOLOCK(ifq);
ASSERT(ifq->ifq_len == 0);
+ ifq->ifq_drv_maxlen = 0; /* disable bulk dequeue */
ifq->altq_flags |= ALTQF_ENABLED;
if (ifq->altq_clfier != NULL)
ifq->altq_flags |= ALTQF_CLASSIFY;
OpenPOWER on IntegriCloud