numam-dpdk/drivers/net/ena/base
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
..
ena_defs ena: import communication layer 2016-03-25 18:56:43 +01:00
ena_com.c ena: fix build with icc 2016-04-06 15:49:17 +02:00
ena_com.h ena: fix build with icc 2016-03-30 19:22:17 +02:00
ena_eth_com.c ena: fix build with icc 2016-03-30 19:22:17 +02:00
ena_eth_com.h ena: import communication layer 2016-03-25 18:56:43 +01:00
ena_plat_dpdk.h eal: add assert macro for debug 2016-05-02 15:31:17 +02:00
ena_plat.h ena: fix FreeBSD build 2016-03-30 19:22:17 +02:00