ethdev: fix illegal port access
ethdev: fix illegal port access

To obtain detachable flag, pci_drv is accessed in rte_eth_dev_is_detachable().
But pci_drv is only valid if port is enabled. Not to cause illegal access,
add rte_eth_dev_is_valid_port() before accessing.

Signed-off-by: Tetsuya Mukawa <b347a9f5840345582b30d055e1e99ac6ac7bce3c@igel.co.jp>
Acked-by: Bernard Iremonger <233eeff376ad0c06f66f06c5522ea3c4feb30d3b@intel.com>

mixja/dpdk,msune/dpdk,venkynv/dpdk-mirror,venkynv/dpdk-mirror,tsphillips/dpdk-fork,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,tsphillips/dpdk-fork,venkynv/dpdk-mirror,john-mcnamara-intel/dpdk,msune/dpdk,msune/dpdk,venkynv/dpdk-mirror,john-mcnamara-intel/dpdk,tsphillips/dpdk-fork,msune/dpdk,tsphillips/dpdk-fork,mixja/dpdk,mixja/dpdk,mixja/dpdk