pci: add kernel driver type
authorMichael Qiu <michael.qiu@intel.com>
Wed, 25 Feb 2015 19:32:16 +0000 (04:32 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 25 Feb 2015 22:38:00 +0000 (23:38 +0100)
commitd9a8cd9595f214b322c68defeb36234a250419ca
tree712d39c12f206bb347af911c219eb05706c1ecaa
parent4dc41c7be65c92f9408f5664ebb917e3c857642d
pci: add kernel driver type

Currently, dpdk has no ability to know which type of driver(
vfio-pci/igb_uio/uio_pci_generic) the device used. It only can
check whether vfio is enabled or not statically.

It really useful to have the flag, because different type need to
handle differently in runtime. For example, pci memory map,
pot hotplug, and so on.

This patch add a flag field for pci device to solve above issue.

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/common/include/rte_pci.h
lib/librte_eal/linuxapp/eal/eal_pci.c