ethdev: filter destroy event before probed
authorThomas Monjalon <thomas@monjalon.net>
Wed, 24 Oct 2018 13:12:32 +0000 (15:12 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:06 +0000 (22:14 +0200)
commit336f20bc5ee26efa6495f697b743f1bba8778afc
tree7b519a92df24c05e91b230c0c5becd857575a8a7
parent140af04e63d77e8f57f5db1ffadfada38b677e53
ethdev: filter destroy event before probed

If a port is being created and rollbacked because of an error,
the event RTE_ETH_EVENT_DESTROY should not be sent.
It makes no sense to receive a destroy event for a port which
was not yet announced via RTE_ETH_EVENT_NEW.

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