ethdev: add notifications for probing and removal
authorThomas Monjalon <thomas@monjalon.net>
Thu, 4 Jan 2018 16:01:11 +0000 (17:01 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit29aa41e36de7b14d0276ecfe35590bdf79d69ce1
tree7266caed30ce4665c7d54f0a652394a91be852aa
parenta8332826c658685cab0c4803c05ceae61f73a43d
ethdev: add notifications for probing and removal

When a PMD finishes probing, it creates the new port by calling
the function rte_eth_dev_allocate().
A notification of the new port is sent there to the upper layer.

When a PMD finishes removal of a port, it calls the function
rte_eth_dev_release_port().
A notification of the destroyed port is sent there to the upper layer.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h