ethdev: add device type
authorTetsuya Mukawa <mukawa@igel.co.jp>
Wed, 25 Feb 2015 19:32:24 +0000 (04:32 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 25 Feb 2015 23:08:25 +0000 (00:08 +0100)
commit9f1653e7b7e1746e7c0d0b74653eed0dfc01fcd2
tree5015304f03c1d4448ea2b7e2585890e13de6590d
parent6c6829475b051c729e9d05695720f89d5263ec92
ethdev: add device type

This new parameter is needed to keep device type like PCI or virtual.
Port detaching processes are different between PCI device and virtual
device.
RTE_ETH_DEV_PCI indicates device type is PCI. RTE_ETH_DEV_VIRTUAL
indicates device is virtual.

Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
app/test/virtual_pmd.c
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h
lib/librte_pmd_af_packet/rte_eth_af_packet.c
lib/librte_pmd_bond/rte_eth_bond_api.c
lib/librte_pmd_pcap/rte_eth_pcap.c
lib/librte_pmd_ring/rte_eth_ring.c
lib/librte_pmd_xenvirt/rte_eth_xenvirt.c