ionic: update the queue count on open
authorShannon Nelson <snelson@pensando.io>
Fri, 26 Jun 2020 05:58:37 +0000 (22:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jun 2020 19:19:51 +0000 (12:19 -0700)
commitfa48494cce5f6360b0f8683cdf258fb45c666287
tree48092583c4a567deacedb9928f28ecf265446313
parent4a21185cda0fbb860580eeeb4f1a70a9cda332a4
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 <snelson@pensando.io>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c