Displaying 3 results from an estimated 3 matches for "dly_dequeue".
2004 Mar 18
6
[PATCH] packet delay scheduler
...ata;
+ unsigned int len;
+
+ len = q->qdisc->ops->drop(q->qdisc);
+ if (len) {
+ sch->q.qlen--;
+ sch->stats.drops++;
+ }
+ return len;
+}
+
+/* Dequeue packet.
+ * If packet needs to be held up, then stop the
+ * queue and set timer to wakeup later.
+ */
+static struct sk_buff *dly_dequeue(struct Qdisc *sch)
+{
+ struct dly_sched_data *q = (struct dly_sched_data *)sch->data;
+ struct sk_buff *skb = q->qdisc->dequeue(q->qdisc);
+
+ if (skb) {
+ struct dly_skb_cb *cb = (struct dly_skb_cb *)skb->cb;
+ psched_time_t now;
+ long diff;
+
+ PSCHED_GET_TIME(now);
+ diff =...
2004 Jun 17
1
[PATCH] (2/4) delay scheduler - retry if requeue fails
...ply to both 2.6 and 2.4
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
diff -Nru a/net/sched/sch_delay.c b/net/sched/sch_delay.c
--- a/net/sched/sch_delay.c 2004-06-17 15:19:07 -07:00
+++ b/net/sched/sch_delay.c 2004-06-17 15:19:07 -07:00
@@ -104,8 +104,10 @@
static struct sk_buff *dly_dequeue(struct Qdisc *sch)
{
struct dly_sched_data *q = (struct dly_sched_data *)sch->data;
- struct sk_buff *skb = q->qdisc->dequeue(q->qdisc);
+ struct sk_buff *skb;
+ retry:
+ skb = q->qdisc->dequeue(q->qdisc);
if (skb) {
struct dly_skb_cb *cb = (struct dly_skb_cb *)skb-&g...
2004 Jul 01
20
[PATCH 2.6] update to network emulation QOS scheduler
...ata;
- unsigned int len;
-
- len = q->qdisc->ops->drop(q->qdisc);
- if (len) {
- sch->q.qlen--;
- sch->stats.drops++;
- }
- return len;
-}
-
-/* Dequeue packet.
- * If packet needs to be held up, then stop the
- * queue and set timer to wakeup later.
- */
-static struct sk_buff *dly_dequeue(struct Qdisc *sch)
-{
- struct dly_sched_data *q = (struct dly_sched_data *)sch->data;
- struct sk_buff *skb;
-
- retry:
- skb = q->qdisc->dequeue(q->qdisc);
- if (skb) {
- struct dly_skb_cb *cb = (struct dly_skb_cb *)skb->cb;
- psched_time_t now;
- long diff, delay;
-
- PSCHED_G...