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-Url: https://git.stricted.de/?a=commitdiff_plain;h=90d841fd0a5e02affd4e2bbdde4f710c61599281;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 3fe49d808957..f81f7c4d76fa 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 *);