All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 net] ionic: update the queue count on open
@ 2020-06-26  5:58 Shannon Nelson
  2020-06-26 16:21 ` Jakub Kicinski
  2020-06-26 19:21 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Shannon Nelson @ 2020-06-26  5:58 UTC (permalink / raw)
  To: netdev, davem; +Cc: Shannon Nelson

Let the network stack know the real number of queues that
we are using.

v2: added error checking

Fixes: 49d3b493673a ("ionic: disable the queues on link down")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
---
 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.c b/drivers/net/ethernet/pensando/ionic/ionic_lif.c
index aaa00edd9d5b..3c9dde31f3fa 100644
--- a/drivers/net/ethernet/pensando/ionic/ionic_lif.c
+++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.c
@@ -1673,6 +1673,14 @@ int ionic_open(struct net_device *netdev)
 	if (err)
 		goto err_out;
 
+	err = netif_set_real_num_tx_queues(netdev, lif->nxqs);
+	if (err)
+		goto err_txrx_deinit;
+
+	err = netif_set_real_num_rx_queues(netdev, lif->nxqs);
+	if (err)
+		goto err_txrx_deinit;
+
 	/* don't start the queues until we have link */
 	if (netif_carrier_ok(netdev)) {
 		err = ionic_start_queues(lif);
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 net] ionic: update the queue count on open
  2020-06-26  5:58 [PATCH v2 net] ionic: update the queue count on open Shannon Nelson
@ 2020-06-26 16:21 ` Jakub Kicinski
  2020-06-26 19:21 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Jakub Kicinski @ 2020-06-26 16:21 UTC (permalink / raw)
  To: Shannon Nelson; +Cc: netdev, davem

On Thu, 25 Jun 2020 22:58:37 -0700 Shannon Nelson wrote:
> Let the network stack know the real number of queues that
> we are using.
> 
> v2: added error checking
> 
> Fixes: 49d3b493673a ("ionic: disable the queues on link down")
> Signed-off-by: Shannon Nelson <snelson@pensando.io>

Reviewed-by: Jakub Kicinski <kuba@kernel.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 net] ionic: update the queue count on open
  2020-06-26  5:58 [PATCH v2 net] ionic: update the queue count on open Shannon Nelson
  2020-06-26 16:21 ` Jakub Kicinski
@ 2020-06-26 19:21 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2020-06-26 19:21 UTC (permalink / raw)
  To: snelson; +Cc: netdev

From: Shannon Nelson <snelson@pensando.io>
Date: Thu, 25 Jun 2020 22:58:37 -0700

> Let the network stack know the real number of queues that
> we are using.
> 
> v2: added error checking
> 
> Fixes: 49d3b493673a ("ionic: disable the queues on link down")
> Signed-off-by: Shannon Nelson <snelson@pensando.io>

Applied and queued up for -stable, thank you.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-26 19:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-26  5:58 [PATCH v2 net] ionic: update the queue count on open Shannon Nelson
2020-06-26 16:21 ` Jakub Kicinski
2020-06-26 19:21 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.