[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_ipv4.c b/nss_ipv4.c
index a26e986..7930be3 100644
--- a/nss_ipv4.c
+++ b/nss_ipv4.c
@@ -360,7 +360,9 @@
*/
void nss_ipv4_register_handler(void)
{
- if (nss_core_register_handler(NSS_IPV4_RX_INTERFACE, nss_ipv4_rx_msg_handler, NULL) != NSS_CORE_STATUS_SUCCESS) {
+ struct nss_ctx_instance *nss_ctx = nss_ipv4_get_mgr();
+
+ if (nss_core_register_handler(nss_ctx, NSS_IPV4_RX_INTERFACE, nss_ipv4_rx_msg_handler, NULL) != NSS_CORE_STATUS_SUCCESS) {
nss_warning("IPv4 handler failed to register");
}
}