net/sfc: do not enable interrupts on internal Rx queues
authorAndrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Fri, 2 Jul 2021 08:39:30 +0000 (11:39 +0300)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 20 Jul 2021 10:20:31 +0000 (12:20 +0200)
rxq_intr flag requests support for interrupt mode for ethdev Rx queues.
There is no internal Rx queues yet.

Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
drivers/net/sfc/sfc_ev.c

index 2262994..9a8149f 100644 (file)
@@ -663,7 +663,9 @@ sfc_ev_qstart(struct sfc_evq *evq, unsigned int hw_index)
                     efx_evq_size(sa->nic, evq->entries, evq_flags));
 
        if ((sa->intr.lsc_intr && hw_index == sa->mgmt_evq_index) ||
-           (sa->intr.rxq_intr && evq->dp_rxq != NULL))
+           (sa->intr.rxq_intr && evq->dp_rxq != NULL &&
+            sfc_ethdev_rx_qid_by_rxq_sw_index(sfc_sa2shared(sa),
+               evq->dp_rxq->dpq.queue_id) != SFC_ETHDEV_QID_INVALID))
                evq_flags |= EFX_EVQ_FLAGS_NOTIFY_INTERRUPT;
        else
                evq_flags |= EFX_EVQ_FLAGS_NOTIFY_DISABLED;