[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_dscp2pri.c b/nss_dscp2pri.c
index 1f95e8b..92a42ed 100644
--- a/nss_dscp2pri.c
+++ b/nss_dscp2pri.c
@@ -551,10 +551,11 @@
/*
* nss_dscp2pri_register_handler()
- * Registering handler for receiving notify msg from dscp2pri node on NSS.
+ * Registering handler for receiving notify msg from dscp2pri node on NSS.
*/
void nss_dscp2pri_register_handler(void)
{
+ struct nss_ctx_instance *nss_ctx = &nss_top_main.nss[0];
int i;
/*
@@ -565,7 +566,7 @@
mapping[i].action = NSS_DSCP2PRI_ACTION_ACCEL;
}
- nss_core_register_handler(NSS_DSCP2PRI_INTERFACE, nss_dscp2pri_configure_handler, NULL);
+ nss_core_register_handler(nss_ctx, NSS_DSCP2PRI_INTERFACE, nss_dscp2pri_configure_handler, NULL);
/*
* dscp2pri sema init.