[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_lag.c b/nss_lag.c
index 4d24d52..b1bdd15 100644
--- a/nss_lag.c
+++ b/nss_lag.c
@@ -221,10 +221,12 @@
*/
void nss_lag_register_handler(void)
{
- nss_core_register_handler(NSS_LAG0_INTERFACE_NUM, nss_lag_handler, NULL);
- nss_core_register_handler(NSS_LAG1_INTERFACE_NUM, nss_lag_handler, NULL);
- nss_core_register_handler(NSS_LAG2_INTERFACE_NUM, nss_lag_handler, NULL);
- nss_core_register_handler(NSS_LAG3_INTERFACE_NUM, nss_lag_handler, NULL);
+ struct nss_ctx_instance *nss_ctx = nss_lag_get_context();
+
+ nss_core_register_handler(nss_ctx, NSS_LAG0_INTERFACE_NUM, nss_lag_handler, NULL);
+ nss_core_register_handler(nss_ctx, NSS_LAG1_INTERFACE_NUM, nss_lag_handler, NULL);
+ nss_core_register_handler(nss_ctx, NSS_LAG2_INTERFACE_NUM, nss_lag_handler, NULL);
+ nss_core_register_handler(nss_ctx, NSS_LAG3_INTERFACE_NUM, nss_lag_handler, NULL);
}
/**