numam-dpdk/lib/librte_ip_frag
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
..
ip_frag_common.h eal: add assert macro for debug 2016-05-02 15:31:17 +02:00
ip_frag_internal.c remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
Makefile mbuf: remove build option to disable refcnt 2015-02-23 19:31:24 +01:00
rte_ip_frag_common.c lib: remove extra parenthesis after return 2015-06-23 23:31:15 +02:00
rte_ip_frag.h ip_frag: fix bit-fields in ipv6 fragment extension 2015-10-08 13:15:17 +02:00
rte_ipfrag_version.map lib: provide initial versioning 2015-02-03 16:56:58 +01:00
rte_ipv4_fragmentation.c eal: add assert macro for debug 2016-05-02 15:31:17 +02:00
rte_ipv4_reassembly.c ip_frag: fix double free of chained mbufs 2016-05-02 12:37:48 +02:00
rte_ipv6_fragmentation.c eal: add assert macro for debug 2016-05-02 15:31:17 +02:00
rte_ipv6_reassembly.c ip_frag: fix double free of chained mbufs 2016-05-02 12:37:48 +02:00