DPDK patches and discussions
 help / color / mirror / Atom feed
From: Pablo de Lara <pablo.de.lara.guarch@intel.com>
To: pablo.de.lara.guarch@intel.com, dev@dpdk.org
Cc: Davidfsdf Hunt <davfsdfsdid.hunt@intel.com>,
	David Hunfdsfst <fdfsddavid.hunt@intel.com>
Subject: [dpdk-dev] [dpdk-dev, v2] igb_uio: fix igb_uio's access to pci_dev->msi_list for kernels >= 4.3
Date: Wed,  2 Dec 2015 15:02:36 +0000	[thread overview]
Message-ID: <1446207257-31455-1-git-send-email-david.hunt@intel.com> (raw)
Message-ID: <20151202150236.Ak9t9NryCaqrXCGhu6f_RyaYaTq9IphEA_4JCpmtW7M@z> (raw)

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);
 

             reply	other threads:[~2015-12-02 15:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-30 12:14 David Hunt [this message]
2015-10-30 12:30 ` [dpdk-dev] [PATCH " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1446207257-31455-1-git-send-email-david.hunt@intel.com \
    --to=pablo.de.lara.guarch@intel.com \
    --cc=davfsdfsdid.hunt@intel.com \
    --cc=dev@dpdk.org \
    --cc=fdfsddavid.hunt@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).