ionic: clean irq affinity on queue deinit
authorShannon Nelson <snelson@pensando.io>
Fri, 20 Mar 2020 02:31:52 +0000 (19:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Mar 2020 02:56:04 +0000 (19:56 -0700)
Add a little more cleanup when tearing down the queues.

Fixes: 1d062b7b6f64 ("ionic: Add basic adminq support")
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 ea44f510cb7639489386114e52c4a372a7329988..490f79c82bf102ba1d5d4bbb7ff0dfff41cad3c1 100644 (file)
@@ -275,8 +275,10 @@ static void ionic_lif_qcq_deinit(struct ionic_lif *lif, struct ionic_qcq *qcq)
        if (qcq->flags & IONIC_QCQ_F_INTR) {
                ionic_intr_mask(idev->intr_ctrl, qcq->intr.index,
                                IONIC_INTR_MASK_SET);
+               irq_set_affinity_hint(qcq->intr.vector, NULL);
                devm_free_irq(dev, qcq->intr.vector, &qcq->napi);
                netif_napi_del(&qcq->napi);
+               qcq->intr.vector = 0;
        }
 
        qcq->flags &= ~IONIC_QCQ_F_INITED;