[qca-nss-drv] Ipsec log

Change-Id: I9463f233f91d515e4fff16c0e41d3f95d4c89e06
Signed-off-by: Sachin Shashidhar <sshashid@codeaurora.org>
diff --git a/nss_ipsec.c b/nss_ipsec.c
index c71ad95..65b7085 100644
--- a/nss_ipsec.c
+++ b/nss_ipsec.c
@@ -22,6 +22,7 @@
 #include "nss_tx_rx_common.h"
 #include "nss_ipsec.h"
 #include "nss_ppe.h"
+#include "nss_ipsec_log.h"
 
 #if defined(NSS_HAL_IPQ806X_SUPPORT)
 #define NSS_IPSEC_ENCAP_INTERFACE_NUM NSS_IPSEC_ENCAP_IF_NUMBER
@@ -117,6 +118,11 @@
 	uint32_t if_num = ncm->interface;
 
 	/*
+	 * Trace messages.
+	 */
+	nss_ipsec_log_rx_msg(nim);
+
+	/*
 	 * Sanity check the message type
 	 */
 	if (ncm->type > NSS_IPSEC_MSG_TYPE_MAX) {
@@ -203,6 +209,11 @@
 
 	BUILD_BUG_ON(NSS_NBUF_PAYLOAD_SIZE < sizeof(struct nss_ipsec_msg));
 
+	/*
+	 * Trace messages.
+	 */
+	nss_ipsec_log_tx_msg(msg);
+
 	if ((ncm->interface != NSS_IPSEC_ENCAP_INTERFACE_NUM) && (ncm->interface != NSS_IPSEC_DECAP_INTERFACE_NUM)) {
 		nss_warning("%p: tx message request for another interface: %d", nss_ctx, ncm->interface);
 		return NSS_TX_FAILURE;