pci: fix ioport support for uio_pci_generic on x86
authorDavid Marchand <david.marchand@6wind.com>
Tue, 15 Mar 2016 06:29:13 +0000 (07:29 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 20:20:37 +0000 (21:20 +0100)
commit2b29a7a4c1a440a1b4929e52ed6085512e37eadf
tree57efa573eca09881b8d48519b1d81e13a144adc4
parentaa664f45cc744d28778656136d0883ccd15839d6
pci: fix ioport support for uio_pci_generic on x86

uio_pci_generic does not offer the same sysfs helpers as igb_uio.
In this case, ioport number can only be retrieved by parsing /proc/ioports.

Fixes: 756ce64b1ecd ("eal: introduce PCI ioport API")

Reported-by: Mauricio Vasquez B <mauricio.vasquezbernal@studenti.polito.it>
Signed-off-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/linuxapp/eal/eal_pci.c