ionic: keep rss hash after fw update
authorShannon Nelson <snelson@pensando.io>
Mon, 20 Jul 2020 23:00:16 +0000 (16:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2020 01:09:38 +0000 (18:09 -0700)
Make sure the RSS hash key is kept across a fw update by not
de-initing it when an update is happening.

Fixes: c672412f6172 ("ionic: remove lifs on fw reset")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c

index 41e86d6..ddb9ad5 100644 (file)
@@ -2277,11 +2277,10 @@ static void ionic_lif_deinit(struct ionic_lif *lif)
                cancel_work_sync(&lif->deferred.work);
                cancel_work_sync(&lif->tx_timeout_work);
                ionic_rx_filters_deinit(lif);
+               if (lif->netdev->features & NETIF_F_RXHASH)
+                       ionic_lif_rss_deinit(lif);
        }
 
-       if (lif->netdev->features & NETIF_F_RXHASH)
-               ionic_lif_rss_deinit(lif);
-
        napi_disable(&lif->adminqcq->napi);
        ionic_lif_qcq_deinit(lif, lif->notifyqcq);
        ionic_lif_qcq_deinit(lif, lif->adminqcq);