From: Ezequiel Garcia Date: Thu, 22 May 2014 23:07:01 +0000 (-0300) Subject: net: mvneta: Change the number of default rx queues to one X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=edadb7fad3f9cbb6565da72192cc192a8d1a0703;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index dd84b6a639fa..02dd075acb56 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;