aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_red.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched/sch_red.c')
-rw-r--r--net/sched/sch_red.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/sched/sch_red.c b/net/sched/sch_red.c
index 5da05839e225..7abc51454c2d 100644
--- a/net/sched/sch_red.c
+++ b/net/sched/sch_red.c
@@ -140,6 +140,14 @@ static struct sk_buff * red_dequeue(struct Qdisc* sch)
140 return skb; 140 return skb;
141} 141}
142 142
143static struct sk_buff * red_peek(struct Qdisc* sch)
144{
145 struct red_sched_data *q = qdisc_priv(sch);
146 struct Qdisc *child = q->qdisc;
147
148 return child->ops->peek(child);
149}
150
143static unsigned int red_drop(struct Qdisc* sch) 151static unsigned int red_drop(struct Qdisc* sch)
144{ 152{
145 struct red_sched_data *q = qdisc_priv(sch); 153 struct red_sched_data *q = qdisc_priv(sch);
@@ -361,6 +369,7 @@ static struct Qdisc_ops red_qdisc_ops __read_mostly = {
361 .cl_ops = &red_class_ops, 369 .cl_ops = &red_class_ops,
362 .enqueue = red_enqueue, 370 .enqueue = red_enqueue,
363 .dequeue = red_dequeue, 371 .dequeue = red_dequeue,
372 .peek = red_peek,
364 .requeue = red_requeue, 373 .requeue = red_requeue,
365 .drop = red_drop, 374 .drop = red_drop,
366 .init = red_init, 375 .init = red_init,