aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_cbq.c
diff options
context:
space:
mode:
authorJarek Poplawski <jarkao2@gmail.com>2008-10-31 03:47:01 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-31 03:47:01 -0400
commit77be155cba4e163e8bba9fd27222a8b6189ec4f7 (patch)
tree0819d4c0bb760080aaba8a00060a774205914034 /net/sched/sch_cbq.c
parent03c05f0d4bb0c267edf12d614025a40e33c5a6f9 (diff)
pkt_sched: Add peek emulation for non-work-conserving qdiscs.
This patch adds qdisc_peek_dequeued() wrapper to emulate peek method with qdisc->dequeue() and storing "peeked" skb in qdisc->gso_skb until dequeuing. This is mainly for compatibility reasons not to break some strange configs because peeking is expected for non-work-conserving parent qdiscs to query work-conserving child qdiscs. This implementation requires using qdisc_dequeue_peeked() wrapper instead of directly calling qdisc->dequeue() for all qdiscs ever querried with qdisc->ops->peek() or qdisc_peek_dequeued(). Signed-off-by: Jarek Poplawski <jarkao2@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_cbq.c')
-rw-r--r--net/sched/sch_cbq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/sch_cbq.c b/net/sched/sch_cbq.c
index 03e389e8d945..63efa70abbea 100644
--- a/net/sched/sch_cbq.c
+++ b/net/sched/sch_cbq.c
@@ -2066,6 +2066,7 @@ static struct Qdisc_ops cbq_qdisc_ops __read_mostly = {
2066 .priv_size = sizeof(struct cbq_sched_data), 2066 .priv_size = sizeof(struct cbq_sched_data),
2067 .enqueue = cbq_enqueue, 2067 .enqueue = cbq_enqueue,
2068 .dequeue = cbq_dequeue, 2068 .dequeue = cbq_dequeue,
2069 .peek = qdisc_peek_dequeued,
2069 .requeue = cbq_requeue, 2070 .requeue = cbq_requeue,
2070 .drop = cbq_drop, 2071 .drop = cbq_drop,
2071 .init = cbq_init, 2072 .init = cbq_init,