[qca-nss-drv] Modify subsystem dataplane registration APIs
Modify subsystem dataplane registration APIs to add features
argument which is used to determine the skb types supported by the interface.
Change-Id: Id9a30ada42d83d62043f976a7a2f9803c465106d
Signed-off-by: Sundarajan Srinivasan <sundaraj@codeaurora.org>
diff --git a/nss_sjack.c b/nss_sjack.c
index 009e3ca..64dc732 100644
--- a/nss_sjack.c
+++ b/nss_sjack.c
@@ -95,7 +95,7 @@
* callback
*/
cb = (nss_sjack_msg_callback_t)ncm->cb;
- ctx = nss_ctx->nss_top->if_ctx[ncm->interface];
+ ctx = nss_ctx->nss_top->subsys_dp_register[ncm->interface].ndev;
cb(ctx, ncm);
}
@@ -173,7 +173,8 @@
{
nss_assert(if_num == NSS_SJACK_INTERFACE);
- nss_top_main.if_ctx[if_num] = netdev;
+ nss_top_main.subsys_dp_register[if_num].ndev = netdev;
+
nss_top_main.if_rx_msg_callback[if_num] = event_callback;
return (struct nss_ctx_instance *)&nss_top_main.nss[nss_top_main.sjack_handler_id];
@@ -186,7 +187,7 @@
{
nss_assert(if_num == NSS_SJACK_INTERFACE);
- nss_top_main.if_ctx[if_num] = NULL;
+ nss_top_main.subsys_dp_register[if_num].ndev = NULL;
nss_top_main.if_rx_msg_callback[if_num] = NULL;
return;