Commit fa48494c authored by Shannon Nelson's avatar Shannon Nelson Committed by David S. Miller

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: 49d3b493 ("ionic: disable the queues on link down")
Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
Reviewed-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4a21185c
...@@ -1673,6 +1673,14 @@ int ionic_open(struct net_device *netdev) ...@@ -1673,6 +1673,14 @@ int ionic_open(struct net_device *netdev)
if (err) if (err)
goto err_out; 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 */ /* don't start the queues until we have link */
if (netif_carrier_ok(netdev)) { if (netif_carrier_ok(netdev)) {
err = ionic_start_queues(lif); err = ionic_start_queues(lif);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment