Displaying 1 result from an estimated 1 matches for "tc_ooo_qopt".
2004 Jun 22
3
[ANNOUNCE] sch_ooo - Out-of-order packet queue discipline
...;timer.function = ooo_timer;
+ q->timer.data = (unsigned long) sch;
+
+ /* init ooo queue */
+ skb_queue_head_init(&q->qooo);
+
+ q->counter = 0;
+ q->tokens = 0;
+
+ if (!opt) {
+ q->limit = sch->dev->tx_queue_len;
+ q->gap = 0;
+ q->wait = 0;
+ } else {
+ struct tc_ooo_qopt *ctl = RTA_DATA(opt);
+
+ if (opt->rta_len < RTA_LENGTH(sizeof(*ctl)))
+ return -EINVAL;
+
+ q->limit = ctl->limit;
+ q->gap = ctl->gap;
+ q->wait = ctl->wait;
+ }
+
+ return 0;
+}
+
+static int ooo_enqueue(struct sk_buff *skb, struct Qdisc *sch)
+{
+ struct ooo_sched_...