]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
netdev: Allocate multiple queues for TX.
authorDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2008 07:34:19 +0000 (00:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jul 2008 02:21:00 +0000 (19:21 -0700)
commite8a0464cc950972824e2e128028ae3db666ec1ed
tree5022b95396c0f3b313531bc39b19543c03551b9a
parent070825b3840a743e21ebcc44f8279708a4fed977
netdev: Allocate multiple queues for TX.

alloc_netdev_mq() now allocates an array of netdev_queue
structures for TX, based upon the queue_count argument.

Furthermore, all accesses to the TX queues are now vectored
through the netdev_get_tx_queue() and netdev_for_each_tx_queue()
interfaces.  This makes it easy to grep the tree for all
things that want to get to a TX queue of a net device.

Problem spots which are not really multiqueue aware yet, and
only work with one queue, can easily be spotted by grepping
for all netdev_get_tx_queue() calls that pass in a zero index.

Signed-off-by: David S. Miller <davem@davemloft.net>
18 files changed:
drivers/net/bonding/bond_main.c
drivers/net/hamradio/bpqether.c
drivers/net/ifb.c
drivers/net/macvlan.c
drivers/net/wireless/hostap/hostap_hw.c
include/linux/netdevice.h
include/net/sch_generic.h
net/8021q/vlan_dev.c
net/core/dev.c
net/core/rtnetlink.c
net/mac80211/main.c
net/mac80211/wme.c
net/netrom/af_netrom.c
net/rose/af_rose.c
net/sched/cls_api.c
net/sched/sch_api.c
net/sched/sch_generic.c
net/sched/sch_teql.c