tcp: build image with TCP_DEBUG_ALWAYS via make

Add cmake option to enable TCP_DEBUG_ALWAYS.
make rebuild VPP_EXTRA_CMAKE_ARGS=-DVPP_TCP_DEBUG_ALWAYS=ON
make rebuild VPP_EXTRA_CMAKE_ARGS=-DVPP_TCP_DEBUG_ALWAYS=OFF

Type: improvement

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: I911a8d615f76516ae0a988bc6135c3b0d8fcb3df
This commit is contained in:
Steven Luong
2022-10-06 16:48:24 -07:00
committed by Florin Coras
parent 14b118b4c7
commit 8d97a5cd1c
2 changed files with 5 additions and 0 deletions

View File

@@ -23,7 +23,11 @@
* debug configuration. Comes with some overhead so it's not recommended for
* production/performance scenarios. Takes priority over TCP_DEBUG_ENABLE.
*/
#ifdef VPP_TCP_DEBUG_ALWAYS
#define TCP_DEBUG_ALWAYS (1)
#else
#define TCP_DEBUG_ALWAYS (0)
#endif
/**
* Build debugging infra only if enabled. Debug components controlled via
* macros that follow.

View File

@@ -18,5 +18,6 @@
#define VPP_SANITIZE_ADDR_OPTIONS "@VPP_SANITIZE_ADDR_OPTIONS@"
#cmakedefine VPP_IP_FIB_MTRIE_16
#cmakedefine VPP_TCP_DEBUG_ALWAYS
#endif