From: Jarek Poplawski Date: Fri, 31 Oct 2008 07:43:45 +0000 (-0700) Subject: pkt_sched: sch_generic: Add Qdisc_ops peek() method. X-Git-Tag: v2.6.29-rc1~581^2~928 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=90d841fd0a5e02affd4e2bbdde4f710c61599281;p=linux-2.6-omap-h63xx.git pkt_sched: sch_generic: Add Qdisc_ops peek() method. Add Qdisc_ops peek() method in order to replace requeuing. Based on ideas and patches of Herbert Xu, Patrick McHardy and David S. Miller. Signed-off-by: Jarek Poplawski Signed-off-by: David S. Miller --- diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index 3fe49d80895..f81f7c4d76f 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -111,6 +111,7 @@ struct Qdisc_ops int (*enqueue)(struct sk_buff *, struct Qdisc *); struct sk_buff * (*dequeue)(struct Qdisc *); + struct sk_buff * (*peek)(struct Qdisc *); int (*requeue)(struct sk_buff *, struct Qdisc *); unsigned int (*drop)(struct Qdisc *);