diff options
author | Tom Herbert <therbert@google.com> | 2010-10-18 22:04:39 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-20 13:27:59 +0400 |
commit | e6484930d7c73d324bccda7d43d131088da697b9 (patch) | |
tree | afa528185a8f679730275722cbd19f660101af50 /net/core/dst.c | |
parent | bd25fa7ba59cd26094319dfba0011b48465f7355 (diff) | |
download | linux-e6484930d7c73d324bccda7d43d131088da697b9.tar.xz |
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>
Diffstat (limited to 'net/core/dst.c')
0 files changed, 0 insertions, 0 deletions