diff mbox

net: stmmac: set default number of rx and tx queues in stmmac_pci

Message ID d8f9e892defdcaf7f7e5fe795f2072b16f7e6b87.1489399548.git.jpinto@synopsys.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Joao Pinto March 13, 2017, 10:07 a.m. UTC
This patch configures default number of RX and TX queues when
using the pci glue driver.

Signed-off-by: Joao Pinto <jpinto@synopsys.com>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

David Miller March 13, 2017, 7:12 p.m. UTC | #1
From: Joao Pinto <Joao.Pinto@synopsys.com>
Date: Mon, 13 Mar 2017 10:07:07 +0000

> This patch configures default number of RX and TX queues when
> using the pci glue driver.
> 
> Signed-off-by: Joao Pinto <jpinto@synopsys.com>

This is a net-next specific patch, you must the target tree properly in your
Subject line or similar, for example:

	[PATCH net-next] stmmac: set default ...

I'm taking care of this, and for the next patch too, but in the future you
need to be clear what tree your changes are targetting.

Thanks.
David Miller March 13, 2017, 7:13 p.m. UTC | #2
From: Joao Pinto <Joao.Pinto@synopsys.com>
Date: Mon, 13 Mar 2017 10:07:07 +0000

> This patch configures default number of RX and TX queues when
> using the pci glue driver.
> 
> Signed-off-by: Joao Pinto <jpinto@synopsys.com>

Applied.
Joao Pinto March 14, 2017, 9:53 a.m. UTC | #3
Hi David,

Às 7:12 PM de 3/13/2017, David Miller escreveu:
> From: Joao Pinto <Joao.Pinto@synopsys.com>
> Date: Mon, 13 Mar 2017 10:07:07 +0000
> 
>> This patch configures default number of RX and TX queues when
>> using the pci glue driver.
>>
>> Signed-off-by: Joao Pinto <jpinto@synopsys.com>
> 
> This is a net-next specific patch, you must the target tree properly in your
> Subject line or similar, for example:

You are right, sorry, I forgot to put the target tree!

> 
> 	[PATCH net-next] stmmac: set default ...
> 
> I'm taking care of this, and for the next patch too, but in the future you
> need to be clear what tree your changes are targetting.
> 
> Thanks.
> 

Thanks,
Joao
diff mbox

Patch

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
index 5c9e4622..cea472a 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
@@ -88,6 +88,10 @@  static void stmmac_default_data(struct plat_stmmacenet_data *plat)
 
 	/* Set the maxmtu to a default of JUMBO_LEN */
 	plat->maxmtu = JUMBO_LEN;
+
+	/* Set default number of RX and TX queues to use */
+	plat->tx_queues_to_use = 1;
+	plat->rx_queues_to_use = 1;
 }
 
 static int quark_default_data(struct plat_stmmacenet_data *plat,