[qca-nss-ipsecmgr] Support use of random pattern for IPsec hash calculation.

Change-Id: I356785a64b5f44eca64eea829349f2ddf6764f0c
Signed-off-by: Tushar Mathur <tushar@codeaurora.org>
diff --git a/exports/nss_ipsec.h b/exports/nss_ipsec.h
index b94bc3a..81a6b54 100644
--- a/exports/nss_ipsec.h
+++ b/exports/nss_ipsec.h
@@ -111,7 +111,8 @@
 
 	uint8_t esp_seq_skip;		/**< Skip ESP sequence number */
 	uint8_t esp_tail_skip;		/**< Skip ESP trailer */
-	uint8_t res[2];			/**< Reserve bytes for alignment */
+	uint8_t use_pattern;		/**< Use random pattern in hash calculation */
+	uint8_t res;			/**< Reserve bytes for alignment */
 };
 
 /*
diff --git a/exports/nss_ipsecmgr.h b/exports/nss_ipsecmgr.h
index 7bbfe5b..7083162 100644
--- a/exports/nss_ipsecmgr.h
+++ b/exports/nss_ipsecmgr.h
@@ -70,7 +70,8 @@
 
 	uint8_t esp_seq_skip;		/**< Skip ESP sequence number in header*/
 	uint8_t esp_tail_skip;		/**< Skip ESP trailer*/
-	uint8_t res[2];			/**< reserve for 4-byte alignment */
+	uint8_t use_pattern;		/**< Use random pattern in hash calculation */
+	uint8_t res;			/**< reserve for 4-byte alignment */
 };
 
 /**
diff --git a/nss_ipsecmgr.c b/nss_ipsecmgr.c
index 3145789..ae5fdf3 100644
--- a/nss_ipsecmgr.c
+++ b/nss_ipsecmgr.c
@@ -189,6 +189,7 @@
 	data->crypto_index = encap->crypto_index;
 
 	data->nat_t_req = encap->nat_t_req;
+	data->use_pattern = encap->use_pattern;
 }
 
 /*