• John Fastabend's avatar
    net: sched: pfifo_fast use skb_array · c5ad119f
    John Fastabend authored
    This converts the pfifo_fast qdisc to use the skb_array data structure
    and set the lockless qdisc bit. pfifo_fast is the first qdisc to support
    the lockless bit that can be a child of a qdisc requiring locking. So
    we add logic to clear the lock bit on initialization in these cases when
    the qdisc graft operation occurs.
    
    This also removes the logic used to pick the next band to dequeue from
    and instead just checks a per priority array for packets from top priority
    to lowest. This might need to be a bit more clever but seems to work
    for now.
    Signed-off-by: default avatarJohn Fastabend <john.fastabend@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c5ad119f
sch_api.c 47.3 KB