ethdev: free detached port by the dedicated function
authorMatan Azrad <matan@mellanox.com>
Thu, 4 Jan 2018 16:01:10 +0000 (17:01 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commita8332826c658685cab0c4803c05ceae61f73a43d
tree567b940fa296b109b62c4912ba89056d520e7179
parent9ec0b3869d8dc50e56170dcaed3b9fe184f2fcd0
ethdev: free detached port by the dedicated function

In the port detach function, use the function to free an ethdev port
instead of changing its state directly.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
lib/librte_ether/rte_ethdev.c