ethdev: add function to release port in secondary process
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 16 Oct 2018 00:16:27 +0000 (08:16 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Oct 2018 08:16:18 +0000 (10:16 +0200)
commit95f3e8846e881290a6f116a605b2c90e46af2016
treec4b97f4616d89257463769e66944df66431ce8ff
parent94d726597662d7656d8d6fafbb63f2c5ed220ac9
ethdev: add function to release port in secondary process

Add driver API rte_eth_release_port_secondary to support the
case when an ethdev need to be detached on a secondary process.
Local state is set to unused and shared data will not be reset
so the primary process can still use it.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
lib/librte_ethdev/rte_ethdev.c
lib/librte_ethdev/rte_ethdev_driver.h
lib/librte_ethdev/rte_ethdev_pci.h
lib/librte_ethdev/rte_ethdev_version.map