]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc: add new queue discipline: head drop fifo
authorHagen Paul Pfeifer <hagen@jauu.net>
Sun, 24 Jan 2010 12:31:05 +0000 (12:31 +0000)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Thu, 4 Mar 2010 00:15:44 +0000 (16:15 -0800)
commitf703129d3441be2e014c58ae3e95314ba769315a
tree963ed7104ea927b196a812f7b8ccf7252eab610d
parent7cd96eee69865e8e973a9364e0110c286108a283
tc: add new queue discipline: head drop fifo

This adds the required changes to gain access to
the head drop classfull queuing discipline named
pfifo_head_drop. In difference to pfifo or pfifo_fast
this queuing discipline will drop the first packet
in the case of queue congestion. As a result the queue
contain always the freshest packets.

To replace the current a root queueing discipline
for eth0:
$ tc qdisc replace dev eth0 root pfifo_head_drop

And show statistics:
$ tc -s qdisc show dev eth0

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
tc/q_fifo.c