[qca-nss-drv] Add new APIs for type specific msg init
Add new APIs for type specific msg init which inturn would
call the nss_cmn_msg_init().
Change-Id: I8cad8d3f69beef5c968b1bd09810916bbe9fc80f
Signed-off-by: Sundarajan Srinivasan <sundaraj@codeaurora.org>
diff --git a/nss_lag.c b/nss_lag.c
index 50745c8..3495799 100644
--- a/nss_lag.c
+++ b/nss_lag.c
@@ -166,3 +166,13 @@
nss_core_register_handler(NSS_LAG1_INTERFACE_NUM, nss_lag_handler, NULL);
}
+/**
+ * nss_lag_msg_init()
+ * Initialize lag message
+ */
+void nss_lag_msg_init(struct nss_lag_msg *nlm, uint16_t lag_num, uint32_t type, uint32_t len,
+ nss_lag_callback_t *cb, void *app_data)
+{
+ nss_cmn_msg_init(&nlm->cm, lag_num, type, len, (void *)cb, app_data);
+}
+EXPORT_SYMBOL(nss_lag_msg_init);