[qca-nss-ecm] en/dis for advanced db object stats
Add option to en/dis advanced stats per database object.
When disabled only connection objects keep packet and byte stats.
Change-Id: I3df01c848dd6fe644d2f52cd859fdd8ccfaa53f3
Signed-off-by: Gareth Williams <garethw@codeaurora.org>
diff --git a/Makefile b/Makefile
index 26c65a8..4dcee3a 100755
--- a/Makefile
+++ b/Makefile
@@ -124,6 +124,12 @@
ccflags-$(ECM_STATE_OUTPUT_ENABLE) += -DECM_STATE_OUTPUT_ENABLE
# #############################################################################
+# Define ECM_DB_ADVANCED_STATS_ENABLE to support XML state output
+# #############################################################################
+ECM_DB_ADVANCED_STATS_ENABLE=y
+ccflags-$(ECM_DB_ADVANCED_STATS_ENABLE) += -DECM_DB_ADVANCED_STATS_ENABLE
+
+# #############################################################################
# Debug flags, set these to = 0 if you want to disable all debugging for that
# file.
# By turning off debugs you gain maximum ECM performance.
@@ -142,9 +148,10 @@
ccflags-y += -DECM_TRACKER_UDP_DEBUG_LEVEL=1
ccflags-y += -DECM_BOND_NOTIFIER_DEBUG_LEVEL=1
ccflags-y += -DECM_INTERFACE_DEBUG_LEVEL=1
-ccflags-y += -DECM_NSS
ccflags-y += -DECM_STATE_DEBUG_LEVEL=1
+ccflags-y += -DECM_NSS
+
ccflags-y += -I$(obj)/ -I$(obj)/frontends/include -I$(obj)/frontends/nss
obj ?= .