From 071925527d4be34c6de879e29c5c1dd5eaa829cc Mon Sep 17 00:00:00 2001 From: Tonghao Zhang Date: Mon, 18 Sep 2017 00:46:57 -0700 Subject: [PATCH] igb_uio: use UIO macro instead of hardcoded value This is not bugfix, but it's convenient to help developer to review and maintain the igbuio codes. Signed-off-by: Tonghao Zhang --- lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c index b578c4a783..a440924bcc 100644 --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c @@ -358,7 +358,7 @@ igbuio_pci_enable_interrupts(struct rte_uio_pci_dev *udev) /* fall back to no IRQ */ case RTE_INTR_MODE_NONE: udev->mode = RTE_INTR_MODE_NONE; - udev->info.irq = 0; + udev->info.irq = UIO_IRQ_NONE; break; default: -- 2.20.1