numam-dpdk/examples/ipsec-secgw
Olivier Matz 5d8f0baf69 log: do not drop debug logs at compile time
Today, all logs whose level is lower than INFO are dropped at
compile-time. This prevents from enabling debug logs at runtime using
--log-level=8.

The rationale was to remove debug logs from the data path at
compile-time, avoiding a test at run-time.

This patch changes the behavior of RTE_LOG() to avoid the compile-time
optimization, and introduces the RTE_LOG_DP() macro that has the same
behavior than the previous RTE_LOG(), for the rare cases where debug
logs are in the data path.

So it is now possible to enable debug logs at run-time by just
specifying --log-level=8. Some drivers still have special compile-time
options to enable more debug log. Maintainers may consider to
remove/reduce them.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
2016-12-01 18:09:13 +01:00
..
ep0.cfg examples/ipsec-secgw: add sample configuration files 2016-10-04 20:41:09 +02:00
ep1.cfg examples/ipsec-secgw: add sample configuration files 2016-10-04 20:41:09 +02:00
esp.c log: do not drop debug logs at compile time 2016-12-01 18:09:13 +01:00
esp.h examples/ipsec-secgw: rework processing loop 2016-06-21 12:07:25 +02:00
ipip.h examples/ipsec-secgw: fix build with gcc 4.5 2016-07-22 11:53:32 +02:00
ipsec-secgw.c examples/ipsec-secgw: add cryptodev queue size constant 2016-10-08 17:54:38 +02:00
ipsec.c log: do not drop debug logs at compile time 2016-12-01 18:09:13 +01:00
ipsec.h examples/ipsec-secgw: add AES-GCM 2016-10-08 17:54:38 +02:00
Makefile examples/ipsec-secgw: support configuration file 2016-10-04 20:41:09 +02:00
parser.c examples/ipsec-secgw: fix configuration parsing 2016-11-07 21:44:42 +01:00
parser.h examples/ipsec-secgw: support configuration file 2016-10-04 20:41:09 +02:00
rt.c examples/ipsec-secgw: support configuration file 2016-10-04 20:41:09 +02:00
sa.c examples/ipsec-secgw: fix configuration parsing 2016-11-07 21:38:45 +01:00
sp4.c examples/ipsec-secgw: support configuration file 2016-10-04 20:41:09 +02:00
sp6.c examples/ipsec-secgw: support configuration file 2016-10-04 20:41:09 +02:00