[dpdk-dev] igb_uio: use the UIO_IRQ_NONE instead of 0.

Message ID 1505720817-2699-1-git-send-email-nic@opencloud.tech (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

nickcooper-zhangtonghao Sept. 18, 2017, 7:46 a.m. UTC
  From: Tonghao Zhang <xiangxia.m.yue@gmail.com>

This is not bugfix, but it's convenient to help developer
to review and maintain the igbuio codes.

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
---
 lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Ferruh Yigit Oct. 6, 2017, 10:51 p.m. UTC | #1
On 9/18/2017 8:46 AM, nic at opencloud.tech (Tonghao Zhang) wrote:
> From: Tonghao Zhang <xiangxia.m.yue at gmail.com>
> 
> This is not bugfix, but it's convenient to help developer
> to review and maintain the igbuio codes.
> 
> Signed-off-by: Tonghao Zhang <xiangxia.m.yue at gmail.com>

Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
  
Ferruh Yigit Oct. 6, 2017, 10:54 p.m. UTC | #2
On 10/6/2017 11:51 PM, Ferruh Yigit wrote:
> On 9/18/2017 8:46 AM, nic at opencloud.tech (Tonghao Zhang) wrote:
>> From: Tonghao Zhang <xiangxia.m.yue at gmail.com>
>>
>> This is not bugfix, but it's convenient to help developer
>> to review and maintain the igbuio codes.
>>
>> Signed-off-by: Tonghao Zhang <xiangxia.m.yue at gmail.com>
> 
> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>

Applied to dpdk/master, thanks.
  

Patch

diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
index 07a19a3..bca22ee 100644
--- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
+++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
@@ -446,7 +446,7 @@  struct rte_uio_pci_dev {
 		/* 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: