ethdev: convert to EAL hotplug
authorDavid Marchand <david.marchand@6wind.com>
Tue, 20 Sep 2016 12:41:25 +0000 (18:11 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 3 Oct 2016 14:33:36 +0000 (16:33 +0200)
commitb0fb26685570acb9f1ff76a9f25f3e29d09e17b2
tree964fe8649d96d9ac2ecfa6cbf0da579183d5fa52
parente8c528cb92840ea334adf69f08264569710964c5
ethdev: convert to EAL hotplug

Remove bus logic from ethdev hotplug by using eal for this.

Current api is preserved:
- the last port that has been created is tracked to return it to the
  application when attaching,
- the internal device name is reused when detaching.

We can not get rid of ethdev hotplug yet since we still need some
mechanism to inform applications of port creation/removal to substitute
for ethdev hotplug api.

dev_type field in struct rte_eth_dev and rte_eth_dev_allocate are kept as
is, but this information is not needed anymore and is removed in the
following commit.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
lib/librte_ether/rte_ethdev.c