aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/ip_dummynet.c
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2000-02-04 16:45:33 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2000-02-04 16:45:33 +0000
commit9fbf0caaacb6218807225d33802a9cd6c8b53912 (patch)
treeb55aae73ea5553e14a98e99ca1fc94d840db5eca /sys/netinet/ip_dummynet.c
parent4bb38e7b78eff3bb7c9230a0056318626520ce1c (diff)
downloadsrc-9fbf0caaacb6218807225d33802a9cd6c8b53912.tar.gz
src-9fbf0caaacb6218807225d33802a9cd6c8b53912.zip
Fix a (mostly harmless) scheduling-in-the-past problem with
dummynet (already fixed in -stable, was waiting for Jordan's approval due to the code freeze). Reported-By: Mike Tancsa Approved-By: Jordan
Notes
Notes: svn path=/head/; revision=56991
Diffstat (limited to 'sys/netinet/ip_dummynet.c')
-rw-r--r--sys/netinet/ip_dummynet.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet/ip_dummynet.c b/sys/netinet/ip_dummynet.c
index 28e877a9aa39..911a8b4f3704 100644
--- a/sys/netinet/ip_dummynet.c
+++ b/sys/netinet/ip_dummynet.c
@@ -380,12 +380,6 @@ ready_event(struct dn_flow_queue *q)
DN_NEXT(p->p.tail) = NULL;
}
/*
- * If the delay line was empty call transmit_event(p) now.
- * Otherwise, the scheduler will take care of it.
- */
- if (p_was_empty)
- transmit_event(p);
- /*
* If we have more packets queued, schedule next ready event
* (can only occur when bandwidth != 0, otherwise we would have
* flushed the whole queue in the previous loop).
@@ -403,6 +397,12 @@ ready_event(struct dn_flow_queue *q)
* queue on error hoping next time we are luckier.
*/
}
+ /*
+ * If the delay line was empty call transmit_event(p) now.
+ * Otherwise, the scheduler will take care of it.
+ */
+ if (p_was_empty)
+ transmit_event(p);
}
/*