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

Change-Id: I5efa1e451930c668f9b52df5019d883560a8eae1
Signed-off-by: Jackson Bockus <jbockus@codeaurora.org>
diff --git a/nss_l2tpv2.c b/nss_l2tpv2.c
index 0b37252..ef05e20 100644
--- a/nss_l2tpv2.c
+++ b/nss_l2tpv2.c
@@ -224,10 +224,7 @@
 	nss_assert(nss_ctx);
 	nss_assert(nss_is_dynamic_interface(if_num));
 
-	nss_ctx->subsys_dp_register[if_num].ndev = netdev;
-	nss_ctx->subsys_dp_register[if_num].cb = l2tpv2_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, l2tpv2_callback, NULL, NULL, netdev, features);
 
 	nss_top_main.l2tpv2_msg_callback = event_callback;
 
@@ -258,10 +255,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.l2tpv2_msg_callback = NULL;