numam-dpdk/lib/librte_sched
Thomas Monjalon 50705e8e3c eal: add assert macro for debug
The macro RTE_VERIFY always checks a condition.
It is optimized with "unlikely" hint.
While this macro is well suited for test applications, it is preferred
in libraries and examples to enable such check in debug mode.
That's why the macro RTE_ASSERT is introduced to call RTE_VERIFY only
if built with debug logs enabled.

A lot of assert macros were duplicated and enabled with a specific flag.
Removing these #ifdef allows to test these code branches more easily
and avoid dead code pitfalls.

The ENA_ASSERT is kept (in debug mode only) because it has more
parameters to log.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2016-05-02 15:31:17 +02:00
..
Makefile sched: introduce reciprocal divide 2016-03-13 23:31:59 +01:00
rte_approx.c remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
rte_approx.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte_bitmap.h bitmap: optimize for 128-bytes cache line 2016-02-11 12:45:35 +01:00
rte_reciprocal.c sched: introduce reciprocal divide 2016-03-13 23:31:59 +01:00
rte_reciprocal.h sched: introduce reciprocal divide 2016-03-13 23:31:59 +01:00
rte_red.c eal: add assert macro for debug 2016-05-02 15:31:17 +02:00
rte_red.h eal: add assert macro for debug 2016-05-02 15:31:17 +02:00
rte_sched_common.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte_sched_version.map sched: hide structure of port hierarchy 2015-07-17 00:35:49 +02:00
rte_sched.c sched: eliminate floating point in calculating byte clock 2016-03-13 23:31:59 +01:00
rte_sched.h sched: keep track of RED drops 2016-03-13 23:28:00 +01:00