net: Simplify RX queue allocation
authorTom Herbert <therbert@google.com>
Tue, 9 Nov 2010 10:47:38 +0000 (10:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Nov 2010 18:57:28 +0000 (10:57 -0800)
This patch move RX queue allocation to alloc_netdev_mq and freeing of
the queues to free_netdev (symmetric to TX queue allocation).  Each
kobject RX queue takes a reference to the queue's device so that the
device can't be freed before all the kobjects have been released-- this
obviates the need for reference counts specific to RX queues.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found