ethdev: fix Rx/Tx return in debug mode
authorCunming Liang <cunming.liang@intel.com>
Wed, 12 Nov 2014 06:24:36 +0000 (14:24 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 12 Nov 2014 23:48:16 +0000 (00:48 +0100)
commit5e8ae7fc919321bd681b3c532ba08d277a34fcb7
tree78fff7854a24934f6d6cef6bf0db7aa74554d658
parentec3d82db2dc13d3b96b7d97801d85dcbaaa1d1cb
ethdev: fix Rx/Tx return in debug mode

Per definition, rte_eth_rx_burst/rte_eth_tx_burst/rte_eth_rx_queue_count
returns the packet number.
When RTE_LIBRTE_ETHDEV_DEBUG turns on, retval of FUNC_PTR_OR_ERR_RTE was
set to -ENOTSUP. It makes confusing.
The patch always return 0 no matter no packet or there's error.

Signed-off-by: Cunming Liang <cunming.liang@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_ether/rte_ethdev.c