diff options
Diffstat (limited to 'net/sched/sch_teql.c')
-rw-r--r-- | net/sched/sch_teql.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/net/sched/sch_teql.c b/net/sched/sch_teql.c index d35ef059abb1..cfc8e7caba62 100644 --- a/net/sched/sch_teql.c +++ b/net/sched/sch_teql.c | |||
@@ -93,16 +93,6 @@ teql_enqueue(struct sk_buff *skb, struct Qdisc* sch) | |||
93 | return NET_XMIT_DROP; | 93 | return NET_XMIT_DROP; |
94 | } | 94 | } |
95 | 95 | ||
96 | static int | ||
97 | teql_requeue(struct sk_buff *skb, struct Qdisc* sch) | ||
98 | { | ||
99 | struct teql_sched_data *q = qdisc_priv(sch); | ||
100 | |||
101 | __skb_queue_head(&q->q, skb); | ||
102 | sch->qstats.requeues++; | ||
103 | return 0; | ||
104 | } | ||
105 | |||
106 | static struct sk_buff * | 96 | static struct sk_buff * |
107 | teql_dequeue(struct Qdisc* sch) | 97 | teql_dequeue(struct Qdisc* sch) |
108 | { | 98 | { |
@@ -123,6 +113,13 @@ teql_dequeue(struct Qdisc* sch) | |||
123 | return skb; | 113 | return skb; |
124 | } | 114 | } |
125 | 115 | ||
116 | static struct sk_buff * | ||
117 | teql_peek(struct Qdisc* sch) | ||
118 | { | ||
119 | /* teql is meant to be used as root qdisc */ | ||
120 | return NULL; | ||
121 | } | ||
122 | |||
126 | static __inline__ void | 123 | static __inline__ void |
127 | teql_neigh_release(struct neighbour *n) | 124 | teql_neigh_release(struct neighbour *n) |
128 | { | 125 | { |
@@ -433,7 +430,7 @@ static __init void teql_master_setup(struct net_device *dev) | |||
433 | 430 | ||
434 | ops->enqueue = teql_enqueue; | 431 | ops->enqueue = teql_enqueue; |
435 | ops->dequeue = teql_dequeue; | 432 | ops->dequeue = teql_dequeue; |
436 | ops->requeue = teql_requeue; | 433 | ops->peek = teql_peek; |
437 | ops->init = teql_qdisc_init; | 434 | ops->init = teql_qdisc_init; |
438 | ops->reset = teql_reset; | 435 | ops->reset = teql_reset; |
439 | ops->destroy = teql_destroy; | 436 | ops->destroy = teql_destroy; |