Skip to contentSkip to conversation

librte: fix igb_uio's access to pci_dev->msi_list for kernels >= 4.3

PATCH Superseded David Hunt 2 participants 2 messages Oct 28, 2015 – Oct 30, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

David Hunt

author
#0 lore raw

PATCH 1/1 librte: fix igb_uio's access to pci_dev->msi_list for kernels >= 4.3

Fix to take this change into account: https://lkml.org/lkml/2015/7/9/101
Has been applied to Kernel 4.3.0-rc6

---
 lib/librte_eal/linuxapp/igb_uio/igb_uio.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
lib/librte_eal/linuxapp/igb_uio/igb_uio.c +5 -0
index 865a276..3bda5d2 100644
@@ -254,8 +254,13 @@ igbuio_pci_irqcontrol(struct uio_info *info, s32 irq_state)
 	else if (udev->mode == RTE_INTR_MODE_MSIX) {
 		struct msi_desc *desc;
 
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0))
 		list_for_each_entry(desc, &pdev->msi_list, list)
 			igbuio_msix_mask_irq(desc, irq_state);
+#else
+		list_for_each_entry(desc, &pdev->dev.msi_list, list)
+			igbuio_msix_mask_irq(desc, irq_state);
+#endif
 	}
 	pci_cfg_access_unlock(pdev);
 
Signature · 1 line
1.7.4.1
#1 lore raw

Hi Dave,

Quoted 7 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of David Hunt
Sent: Wednesday, October 28, 2015 2:25 PM
To: [email protected]
Subject: [dpdk-dev] [PATCH] librte: fix igb_uio's access to pci_dev->msi_list for kernels >= 4.3

Quoted 5 lines

Fix to take this change into account: https://lkml.org/lkml/2015/7/9/101
Has been applied to Kernel 4.3.0-rc6

---

Fix works, but could you modify the commit title? igb_uio: fix.... Also, in the past we have included the commit id on the Linux repository, which is:

Linux: 4a7cc831 ("genirq/MSI: Move msi_list from struct pci_dev to struct device")