[qca-nss-drv] Update callback handler

Update the callback handler to handle
per core requests

Change-Id: Id0502903ffd26c81620e34427af7e2f626a572b3
Signed-off-by: Thomas Wu <wthomas@codeaurora.org>
diff --git a/nss_log.c b/nss_log.c
index 7bed5f8..9dd56db 100644
--- a/nss_log.c
+++ b/nss_log.c
@@ -675,8 +675,11 @@
 	}
 
 	nss_debug_interface_set_callback(nss_debug_interface_event, NULL);
-	core_status = nss_core_register_handler(NSS_DEBUG_INTERFACE, nss_debug_interface_handler, NULL);
-	if (core_status != NSS_CORE_STATUS_SUCCESS) {
-		nss_warning("NSS logbuffer init failed with register handler:%d\n", core_status);
+
+	for (i = 0; i < NSS_MAX_CORES; i++) {
+		core_status = nss_core_register_handler(&nss_top_main.nss[i], NSS_DEBUG_INTERFACE, nss_debug_interface_handler, NULL);
+		if (core_status != NSS_CORE_STATUS_SUCCESS) {
+			nss_warning("NSS logbuffer init failed with register handler:%d\n", core_status);
+		}
 	}
 }