diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2014-05-22 20:07:01 -0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-23 15:31:49 -0400 |
commit | edadb7fad3f9cbb6565da72192cc192a8d1a0703 (patch) | |
tree | 85fb4bf5c378a7ce25522ad4b52fb50b9e2a40ef /drivers/net/ethernet/marvell/mvneta.c | |
parent | e68de36072e1b9012bc07fe18f83a6c30ce3d260 (diff) |
net: mvneta: Change the number of default rx queues to one
The driver does not support multiple rx queues, and so it's a waste
of resources to have a default number larger than one (1).
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mvneta.c')
-rw-r--r-- | drivers/net/ethernet/marvell/mvneta.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index dd84b6a639f..02dd075acb5 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -451,7 +451,10 @@ struct mvneta_rx_queue { int next_desc_to_proc; }; -static int rxq_number = 8; +/* The hardware supports eight (8) rx queues, but we are only allowing + * the first one to be used. Therefore, let's just allocate one queue. + */ +static int rxq_number = 1; static int txq_number = 8; static int rxq_def; |