tcp: build image with TCP_DEBUG_ALWAYS via make 68/37368/2
authorSteven Luong <sluong@cisco.com>
Thu, 6 Oct 2022 23:48:24 +0000 (16:48 -0700)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 7 Oct 2022 19:42:26 +0000 (19:42 +0000)
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

src/vnet/tcp/tcp_debug.h
src/vpp/vnet/config.h.in

index 03240c6..a0bdaa3 100644 (file)
  * 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.
index 1402e81..ccf1571 100644 (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