• Hagen Paul Pfeifer's avatar
    tc: add new queue discipline: head drop fifo · f703129d
    Hagen Paul Pfeifer authored
    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: default avatarHagen Paul Pfeifer <hagen@jauu.net>
    f703129d
q_fifo.c 2.19 KB