* [dpdk-dev] [PATCH v2] igb_uio: fix igb_uio's access to pci_dev->msi_list for kernels >= 4.3
@ 2015-10-30 12:14 David Hunt
2015-10-30 12:30 ` De Lara Guarch, Pablo
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: David Hunt @ 2015-10-30 12:14 UTC (permalink / raw)
To: dev
Fix to take this change into account: https://lkml.org/lkml/2015/7/9/101
Has been applied to Kernel 4.3.0-rc6
Linux: 4a7cc831 ("genirq/MSI: Move msi_list from struct pci_dev to
struct device")
Signed-off-by: David Hunt <david.hunt@intel.com>
---
lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
index 3173e93..918861a 100644
--- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
+++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
@@ -248,8 +248,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);
--
1.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH v2] igb_uio: fix igb_uio's access to pci_dev->msi_list for kernels >= 4.3
2015-10-30 12:14 [dpdk-dev] [PATCH v2] igb_uio: fix igb_uio's access to pci_dev->msi_list for kernels >= 4.3 David Hunt
@ 2015-10-30 12:30 ` De Lara Guarch, Pablo
2015-11-04 23:07 ` Thomas Monjalon
2015-12-02 15:02 ` [dpdk-dev] [dpdk-dev, " Pablo de Lara
2015-12-02 15:05 ` De Lara Guarch, Pablo
2 siblings, 1 reply; 5+ messages in thread
From: De Lara Guarch, Pablo @ 2015-10-30 12:30 UTC (permalink / raw)
To: Hunt, David, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of David Hunt
> Sent: Friday, October 30, 2015 12:14 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH v2] igb_uio: 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
>
> Linux: 4a7cc831 ("genirq/MSI: Move msi_list from struct pci_dev to
> struct device")
>
> Signed-off-by: David Hunt <david.hunt@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [dpdk-dev] [dpdk-dev, v2] igb_uio: fix igb_uio's access to pci_dev->msi_list for kernels >= 4.3
2015-10-30 12:14 [dpdk-dev] [PATCH v2] igb_uio: fix igb_uio's access to pci_dev->msi_list for kernels >= 4.3 David Hunt
2015-10-30 12:30 ` De Lara Guarch, Pablo
@ 2015-12-02 15:02 ` Pablo de Lara
2015-12-02 15:05 ` De Lara Guarch, Pablo
2 siblings, 0 replies; 5+ messages in thread
From: Pablo de Lara @ 2015-12-02 15:02 UTC (permalink / raw)
To: pablo.de.lara.guarch, dev; +Cc: Davidfsdf Hunt, David Hunfdsfst
From: David Hunfdsfst <fdfsddavid.hunt@intel.com>
Fix to take this change into account: https://lkml.org/lkml/2015/7/9/101
Has been applied to Kernel 4.3.0-rc6
Linux: 4a7cc831 ("genirq/MSI: Move msi_list from struct pci_dev to
struct device")
Signed-off-by: Davidfsdf Hunt <davfsdfsdid.hunt@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
index 3173e93..918861a 100644
--- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
+++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
@@ -248,8 +248,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);
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [dpdk-dev, v2] igb_uio: fix igb_uio's access to pci_dev->msi_list for kernels >= 4.3
2015-10-30 12:14 [dpdk-dev] [PATCH v2] igb_uio: fix igb_uio's access to pci_dev->msi_list for kernels >= 4.3 David Hunt
2015-10-30 12:30 ` De Lara Guarch, Pablo
2015-12-02 15:02 ` [dpdk-dev] [dpdk-dev, " Pablo de Lara
@ 2015-12-02 15:05 ` De Lara Guarch, Pablo
2 siblings, 0 replies; 5+ messages in thread
From: De Lara Guarch, Pablo @ 2015-12-02 15:05 UTC (permalink / raw)
To: dev
Hi,
Sorry about the spam, I was testing my mail server and sent it accidentally to the mailing list.
Pablo
> -----Original Message-----
> From: De Lara Guarch, Pablo
> Sent: Wednesday, December 02, 2015 3:03 PM
> To: De Lara Guarch, Pablo; dev@dpdk.org
> Cc: David Hunfdsfst; Davidfsdf Hunt
> Subject: [dpdk-dev, v2] igb_uio: fix igb_uio's access to pci_dev->msi_list for
> kernels >= 4.3
>
> From: David Hunfdsfst <fdfsddavid.hunt@intel.com>
>
> Fix to take this change into account: https://lkml.org/lkml/2015/7/9/101
> Has been applied to Kernel 4.3.0-rc6
>
> Linux: 4a7cc831 ("genirq/MSI: Move msi_list from struct pci_dev to
> struct device")
>
> Signed-off-by: Davidfsdf Hunt <davfsdfsdid.hunt@intel.com>
> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
>
> ---
> lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
> b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
> index 3173e93..918861a 100644
> --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
> +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
> @@ -248,8 +248,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);
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-12-02 15:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-30 12:14 [dpdk-dev] [PATCH v2] igb_uio: fix igb_uio's access to pci_dev->msi_list for kernels >= 4.3 David Hunt
2015-10-30 12:30 ` De Lara Guarch, Pablo
2015-11-04 23:07 ` Thomas Monjalon
2015-12-02 15:02 ` [dpdk-dev] [dpdk-dev, " Pablo de Lara
2015-12-02 15:05 ` De Lara Guarch, Pablo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).