eal/linux: populate uio maps from pci resources array
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 24 Feb 2015 13:30:46 +0000 (13:30 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Feb 2015 21:31:25 +0000 (22:31 +0100)
commit0fbbb63fbf6cd35c0f2a85a4c5c8fabc2165cef8
treefe05748cbcd1d2b9d0b631772c464219fd27be77
parent9e67561acd1a10ec41fffe5ca512a6376de96369
eal/linux: populate uio maps from pci resources array

Rather than scanning the resource file in sysfs a second time, we
can pull the information on physical addresses of BARs from the
pci resource information already present in the dev structure.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/linuxapp/eal/eal_pci_uio.c