ethdev: refactor port release
authorThomas Monjalon <thomas.monjalon@6wind.com>
Sat, 18 Jul 2015 17:46:20 +0000 (19:46 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 19 Jul 2015 10:50:02 +0000 (12:50 +0200)
commitff3ae4d4462bc8685bcb10f61b1f850eefad6f3e
tree5be8ae58213f4bfb6758d9a2bf91f5b477f2d79c
parentd800f55ff06ebb117bc4ba81d78cbce2838585c3
ethdev: refactor port release

Use DEV_DETACHED constant and deduplicate code in init.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_ether/rte_ethdev.c