ethdev: export function to check port validity
authorStephen Hemminger <shemming@brocade.com>
Wed, 10 Jun 2015 22:06:24 +0000 (15:06 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 20 Jul 2015 00:47:38 +0000 (02:47 +0200)
commit393775d5c0d35fb74e139c0b4ec9cc2304b70581
treee02762d20a145aba95ddcdf5dae4406167e5df7f
parenta20d5f06e2e19d3622620d838006ea4eaaa594fb
ethdev: export function to check port validity

The function rte_eth_dev_is_valid_port is good way to have all
drivers using same function and solves several hotplug related
bugs from drivers not checking attached flag.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h
lib/librte_ether/rte_ether_version.map