mv643xx_eth: allow multiple TX queues

As with the multiple RX queue support, allow the platform code to
specify that the hardware we are running on supports multiple TX
queues.  This patch only uses the highest-numbered enabled queue
to send packets to for now, this can be extended later to enable
QoS and such.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Acked-by: Dale Farnsworth <dale@farnsworth.org>
This commit is contained in:
Lennert Buytenhek
2008-06-02 01:28:22 +02:00
parent 64da80a29c
commit 3d6b35bc50
2 changed files with 105 additions and 44 deletions

View File

@@ -49,9 +49,10 @@ struct mv643xx_eth_platform_data {
int duplex;
/*
* Which RX queues to use.
* Which RX/TX queues to use.
*/
int rx_queue_mask;
int tx_queue_mask;
/*
* Override default RX/TX queue sizes if nonzero.