ethdev: fix hotplug check for Rx and Tx callbacks
authorKeith Wiles <keith.wiles@intel.com>
Thu, 26 Feb 2015 14:00:32 +0000 (08:00 -0600)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 5 Mar 2015 20:30:47 +0000 (21:30 +0100)
commitd8b8517893910a1136abbe761b44583b00596d5d
treea8641ab4cf1bcc5827eba4b60d75381e5a12405c
parent352078e8e196a2c1ca38e2d7303f4d69d1c4ec68
ethdev: fix hotplug check for Rx and Tx callbacks

Some checks with rte_eth_dev_is_valid_port() were missed when merging
hotplug and callbacks features.

Fixes: c282abd2a6cd ("ethdev: remove assumption that port will not be detached")

Signed-off-by: Keith Wiles <keith.wiles@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
lib/librte_ether/rte_ethdev.c