cleaned up virt_if APIs
Change-Id: If62140b061c3bf290b207da7bc899f8c7e856b90
Signed-off-by: Abhishek Rastogi <rastogiabhi@codeaurora.org>
diff --git a/nss_ipv4.c b/nss_ipv4.c
index b561904..bf4020c 100755
--- a/nss_ipv4.c
+++ b/nss_ipv4.c
@@ -105,7 +105,7 @@
*/
if (nim->cm.response == NSS_CMM_RESPONSE_NOTIFY) {
ncm->cb = (uint32_t)nss_ctx->nss_top->ipv4_callback;
- //ncm->app_data = nss_ctx->nss_top->ipv4_app_data;
+ ncm->app_data = (uint32_t)nss_ctx->nss_top->ipv4_ctx;
}
/*
@@ -228,7 +228,7 @@
* TODO: If we use a per-context array, we would move the array into nss_ctx based.
*/
nss_top_main.ipv4_callback = cb;
- // nss_top_main.ipv4_app_data = app_data;
+ nss_top_main.ipv4_ctx = app_data;
return &nss_top_main.nss[nss_top_main.ipv4_handler_id];
}