[qca-nss-drv] Add api to return interface number with core-id

Add API which will take encap and decap interface number and will
be the interface number with core id appended.

Change-Id: If27bef5d0f018ac5509c6d2a91d2ee4d284a9deb
Signed-off-by: Sourav Poddar <souravp@codeaurora.org>
diff --git a/nss_ipsec.c b/nss_ipsec.c
index 139499d..c71ad95 100644
--- a/nss_ipsec.c
+++ b/nss_ipsec.c
@@ -485,6 +485,19 @@
 EXPORT_SYMBOL(nss_ipsec_get_context);
 
 /*
+ * nss_ipsec_get_ifnum()
+ *	Return IPsec interface number with coreid.
+ */
+int32_t nss_ipsec_get_ifnum(int32_t if_num)
+{
+	struct nss_ctx_instance *nss_ctx = nss_ipsec_get_context();
+
+	NSS_VERIFY_CTX_MAGIC(nss_ctx);
+	return NSS_INTERFACE_NUM_APPEND_COREID(nss_ctx, if_num);
+}
+EXPORT_SYMBOL(nss_ipsec_get_ifnum);
+
+/*
  * nss_ipsec_ppe_port_config()
  *	Configure PPE port for IPsec inline
  */