From: Patrick McHardy Date: Fri, 31 Oct 2008 07:44:18 +0000 (-0700) Subject: pkt_sched: Add ->peek() methods for fifo, prio and SFQ qdiscs. X-Git-Tag: v2.6.29-rc1~581^2~927 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48a8f519e0fe22a5c98523286b2a120841a11dd5;p=pandora-kernel.git pkt_sched: Add ->peek() methods for fifo, prio and SFQ qdiscs. From: Patrick McHardy Just as a demonstration how easy adding a peek operation to the work-conserving qdiscs actually is. It doesn't need to keep or change any internal state in many cases thanks to the guarantee that the packet will either be dequeued or, if another packet arrives, the upper qdisc will immediately ->peek again to reevaluate the state. (This is only slightly modified Patrick's patch.) Signed-off-by: Jarek Poplawski Signed-off-by: David S. Miller --- Reading git-diff-tree failed