eal/linux: fix irq handling with igb_uio
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 28 Apr 2015 16:36:38 +0000 (09:36 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 13 May 2015 09:26:44 +0000 (11:26 +0200)
commit3f313bef3467044d4caf4f0408b43beb78330592
tree64f1a0291f9a8a2e240b6ce16e8a80adac0bd25b
parent55ae322d619be42cfd8b4f7a695268c2f8a9629e
eal/linux: fix irq handling with igb_uio

The introduction of uio_pci_generic broke interrupt handling with
igb_uio. The igb_uio device uses the kernel read/write method to
enable disable IRQ's; the uio_pci_generic has to use PCI intx
config read/write to enable disable interrupts.

Since igb_uio uses MSI-X the PCI intx config read/write won't
work.

Fixes: c112df6875a5 ("eal/linux: toggle interrupt for uio_pci_generic")

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/linuxapp/eal/eal_interrupts.c
lib/librte_eal/linuxapp/eal/eal_pci_uio.c
lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h