ethdev: make error checking macros public
authorDeclan Doherty <declan.doherty@intel.com>
Wed, 25 Nov 2015 13:25:09 +0000 (13:25 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 25 Nov 2015 16:23:06 +0000 (17:23 +0100)
commitb974e4a40cb579b2bacbacfce1edff3d9cb717b5
treea1553a663a4d984c4ee5f785adefb1d5c5d375ef
parent50ead110cb56e7c07d4be66e9d8acd83ce837367
ethdev: make error checking macros public

Move the function pointer and port id checking macros to rte_ethdev and
rte_dev header files, so that they can be used in the static inline
functions there. Also replace the RTE_LOG call within
RTE_PMD_DEBUG_TRACE so this macro can be built with the -pedantic flag

Signed-off-by: Declan Doherty <declan.doherty@intel.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
lib/librte_eal/common/include/rte_dev.h
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h