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

ionic: deinit rss only if selected

Don't bother de-initing RSS if it wasn't selected.

Fixes: aa319881 ("ionic: Add RSS support")
Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ecd2d8b0
...@@ -2066,6 +2066,7 @@ static void ionic_lif_deinit(struct ionic_lif *lif) ...@@ -2066,6 +2066,7 @@ static void ionic_lif_deinit(struct ionic_lif *lif)
clear_bit(IONIC_LIF_F_INITED, lif->state); clear_bit(IONIC_LIF_F_INITED, lif->state);
ionic_rx_filters_deinit(lif); ionic_rx_filters_deinit(lif);
if (lif->netdev->features & NETIF_F_RXHASH)
ionic_lif_rss_deinit(lif); ionic_lif_rss_deinit(lif);
napi_disable(&lif->adminqcq->napi); napi_disable(&lif->adminqcq->napi);
......
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