pci: select memory mapping from driver type
authorMichael Qiu <michael.qiu@intel.com>
Wed, 25 Feb 2015 19:32:17 +0000 (04:32 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 25 Feb 2015 22:38:00 +0000 (23:38 +0100)
commitcc4fe5c45d09e5c0d75a64b4a1bdae728b886889
tree64d0cf493e236b2a014ad075c378e4a6d441fbed
parentd9a8cd9595f214b322c68defeb36234a250419ca
pci: select memory mapping from driver type

With the driver type flag in struct rte_pci_dev, we do not need
to always map uio devices with vfio related function when
vfio enabled.

Signed-off-by: Michael Qiu <michael.qiu@intel.com>
Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
lib/librte_eal/linuxapp/eal/eal_pci.c