]> git.baikalelectronics.ru Git - kernel.git/commit
net: allocate tx queues in register_netdevice
authorTom Herbert <therbert@google.com>
Mon, 18 Oct 2010 18:04:39 +0000 (18:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Oct 2010 09:27:59 +0000 (02:27 -0700)
commit9befb671298040aa9174c94db1a420e0124674fb
treeafa528185a8f679730275722cbd19f660101af50
parentfd97a4eaab91162c77d97a68649392ed22b61228
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 <therbert@google.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c