From: Tom Herbert Date: Mon, 18 Oct 2010 18:04:39 +0000 (+0000) Subject: net: allocate tx queues in register_netdevice X-Git-Tag: v2.6.37-rc1~147^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6484930d7c73d324bccda7d43d131088da697b9;p=pandora-kernel.git net: allocate tx queues in register_netdevice This patch introduces netif_alloc_netdev_queues which is called from register_device instead of alloc_netdev_mq. This makes TX queue allocation symmetric with RX allocation. Also, queue locks allocation is done in netdev_init_one_queue. Change set_real_num_tx_queues to fail if requested number < 1 or greater than number of allocated queues. Signed-off-by: Tom Herbert Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed