[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_ipsec.c b/nss_ipsec.c
index 85ee3c0..263c7c6 100644
--- a/nss_ipsec.c
+++ b/nss_ipsec.c
@@ -375,3 +375,13 @@
nss_core_register_handler(NSS_IPSEC_DECAP_IF_NUMBER, nss_ipsec_msg_handler, NULL);
}
+/*
+ * nss_ipsec_msg_init()
+ * Initialize ipsec message.
+ */
+void nss_ipsec_msg_init(struct nss_ipsec_msg *nim, uint16_t if_num, uint32_t type, uint32_t len,
+ nss_ipsec_msg_callback_t *cb, void *app_data)
+{
+ nss_cmn_msg_init(&nim->cm, if_num, type, len, (void *)cb, app_data);
+}
+EXPORT_SYMBOL(nss_ipsec_msg_init);