[qca-nss-drv] PPE service code stats

Changes to enable service code stats in ppe.

Change-Id: I60bdadd76e5eabef1add80655f441c89bd357dbc
Signed-off-by: Amit Gupta <amitgupt@codeaurora.org>
diff --git a/nss_ppe.c b/nss_ppe.c
index 1135729..7b0b20b 100644
--- a/nss_ppe.c
+++ b/nss_ppe.c
@@ -297,7 +297,9 @@
 
 	nss_core_register_handler(nss_ctx, NSS_PPE_INTERFACE, nss_ppe_handler, NULL);
 
-	nss_ppe_stats_dentry_create();
+	if (nss_ppe_debug_stats.valid) {
+		nss_ppe_stats_dentry_create();
+	}
 }
 
 /*