[qca-nss-drv] Added subsys dp register/unregister funcs

Change-Id: I5efa1e451930c668f9b52df5019d883560a8eae1
Signed-off-by: Jackson Bockus <jbockus@codeaurora.org>
diff --git a/nss_tun6rd.c b/nss_tun6rd.c
index d538b13..6b3c0a8 100644
--- a/nss_tun6rd.c
+++ b/nss_tun6rd.c
@@ -157,10 +157,7 @@
 	nss_assert(nss_ctx);
 	nss_assert((if_num >=  NSS_DYNAMIC_IF_START) && (if_num < NSS_SPECIAL_IF_START));
 
-	nss_ctx->subsys_dp_register[if_num].ndev = netdev;
-	nss_ctx->subsys_dp_register[if_num].cb = tun6rd_callback;
-	nss_ctx->subsys_dp_register[if_num].app_data = NULL;
-	nss_ctx->subsys_dp_register[if_num].features = features;
+	nss_core_register_subsys_dp(nss_ctx, if_num, tun6rd_callback, NULL, NULL, netdev, features);
 
 	nss_top_main.tun6rd_msg_callback = event_callback;
 
@@ -187,10 +184,7 @@
 	nss_assert(nss_ctx);
 	nss_assert(nss_is_dynamic_interface(if_num));
 
-	nss_ctx->subsys_dp_register[if_num].ndev = NULL;
-	nss_ctx->subsys_dp_register[if_num].cb = NULL;
-	nss_ctx->subsys_dp_register[if_num].app_data = NULL;
-	nss_ctx->subsys_dp_register[if_num].features = 0;
+	nss_core_unregister_subsys_dp(nss_ctx, if_num);
 
 	nss_top_main.tun6rd_msg_callback = NULL;