diff options
author | Jarek Poplawski <jarkao2@gmail.com> | 2008-10-31 03:45:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-31 03:45:55 -0400 |
commit | 8e3af97899db433111287e07d5105189f56fe191 (patch) | |
tree | 40e7779ea4b587c9c3b882018ccaac1b53419f1c /net/sched/sch_teql.c | |
parent | 99c0db26797edb39cf83c8c5f8972067f5426b4e (diff) |
pkt_sched: Add qdisc->ops->peek() implementation.
Add qdisc->ops->peek() implementation for work-conserving qdiscs.
With feedback from Patrick McHardy.
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_teql.c')
-rw-r--r-- | net/sched/sch_teql.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/sched/sch_teql.c b/net/sched/sch_teql.c index d35ef059abb1..bf03e7fa1849 100644 --- a/net/sched/sch_teql.c +++ b/net/sched/sch_teql.c | |||
@@ -123,6 +123,13 @@ teql_dequeue(struct Qdisc* sch) | |||
123 | return skb; | 123 | return skb; |
124 | } | 124 | } |
125 | 125 | ||
126 | static struct sk_buff * | ||
127 | teql_peek(struct Qdisc* sch) | ||
128 | { | ||
129 | /* teql is meant to be used as root qdisc */ | ||
130 | return NULL; | ||
131 | } | ||
132 | |||
126 | static __inline__ void | 133 | static __inline__ void |
127 | teql_neigh_release(struct neighbour *n) | 134 | teql_neigh_release(struct neighbour *n) |
128 | { | 135 | { |
@@ -433,6 +440,7 @@ static __init void teql_master_setup(struct net_device *dev) | |||
433 | 440 | ||
434 | ops->enqueue = teql_enqueue; | 441 | ops->enqueue = teql_enqueue; |
435 | ops->dequeue = teql_dequeue; | 442 | ops->dequeue = teql_dequeue; |
443 | ops->peek = teql_peek; | ||
436 | ops->requeue = teql_requeue; | 444 | ops->requeue = teql_requeue; |
437 | ops->init = teql_qdisc_init; | 445 | ops->init = teql_qdisc_init; |
438 | ops->reset = teql_reset; | 446 | ops->reset = teql_reset; |