From: David Su Date: Fri, 20 Jan 2017 23:08:19 +0000 (-0800) Subject: igb_uio: use non-threaded ISR X-Git-Tag: spdx-start~4348 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f0d1896fa14385dc9b16065594012cdc8a449ee1;p=dpdk.git igb_uio: use non-threaded ISR This eliminates the overhead of a task switch when an interrupt arrives. Signed-off-by: David Su Acked-by: Ferruh Yigit --- diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c index 56d19ab871..41bf6ea39a 100644 --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c @@ -384,6 +384,7 @@ igbuio_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) msix_entry.entry = 0; if (pci_enable_msix(dev, &msix_entry, 1) == 0) { dev_dbg(&dev->dev, "using MSI-X"); + udev->info.irq_flags = IRQF_NO_THREAD; udev->info.irq = msix_entry.vector; udev->mode = RTE_INTR_MODE_MSIX; break; @@ -392,7 +393,7 @@ igbuio_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) case RTE_INTR_MODE_LEGACY: if (pci_intx_mask_supported(dev)) { dev_dbg(&dev->dev, "using INTX"); - udev->info.irq_flags = IRQF_SHARED; + udev->info.irq_flags = IRQF_SHARED | IRQF_NO_THREAD; udev->info.irq = dev->irq; udev->mode = RTE_INTR_MODE_LEGACY; break;