ionic: update the queue count on open
Subsystems (3)
PATCH v2 1/1 ionic: update the queue count on open
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 <[email protected]>
--- drivers/net/ethernet/pensando/ionic/ionic_lif.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/net/ethernet/pensando/ionic/ionic_lif.c +8 -0
@@ -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);
Signature · 1 line
2.17.1
Quoted 7 lines · 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 <[email protected]>
Reviewed-by Jakub Kicinski <[email protected]>
David Miller
maintainerFrom: Shannon Nelson <[email protected]>
Date: Thu, 25 Jun 2020 22:58:37 -0700
Quoted 7 lines
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 <[email protected]>
Applied and queued up for -stable, thank you.