• David S. Miller's avatar
    pkt_sched: Add multiqueue handling to qdisc_graft(). · 99194cff
    David S. Miller authored
    Move the destruction of the old queue into qdisc_graft().
    
    When operating on a root qdisc (ie. "parent == NULL"), apply
    the operation to all queues.  The caller has grabbed a single
    implicit reference for this graft, therefore when we apply the
    change to more than one queue we must grab additional qdisc
    references.
    
    Otherwise, we are operating on a class of a specific parent qdisc, and
    therefore no multiqueue handling is necessary.
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    99194cff
sch_api.c 33.6 KB