sch_sfq: fix peek() implementation
authorEric Dumazet <[email protected]>
Wed, 25 May 2011 04:40:11 +0000 (04:40 +0000)
committerDavid S. Miller <[email protected]>
Wed, 25 May 2011 21:55:32 +0000 (17:55 -0400)
commit07bd8df5df4369487812bf85a237322ff3569b77
treed610d0a326c63551f98ed50821f6603b506527b1
parent367bbf2aa1654c12ab5d6dbf4428b043b425be29
sch_sfq: fix peek() implementation

Since commit eeaeb068f139 (sch_sfq: allow big packets and be fair),
sfq_peek() can return a different skb that would be normally dequeued by
sfq_dequeue() [ if current slot->allot is negative ]

Use generic qdisc_peek_dequeued() instead of custom implementation, to
get consistent result.

Signed-off-by: Eric Dumazet <[email protected]>
CC: Jarek Poplawski <[email protected]>
CC: Patrick McHardy <[email protected]>
CC: Jesper Dangaard Brouer <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/sched/sch_sfq.c