pkt_sched: Add multiqueue handling to qdisc_graft().
authorDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2008 11:54:10 +0000 (04:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jul 2008 02:21:30 +0000 (19:21 -0700)
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: David S. Miller <davem@davemloft.net>

No differences found