[qca-nss-drv] Fix IPv6 connection sync issue with new APIs.

- Do not return in the switch/case loop after calling the conn sync function.
At the end of the function IPv6 netdev callback is called to upadte the
ECM and conntrack connections.
- Fix some boundry type checks in both IPv4 and IPv6 files.

Change-Id: I995ab91e3b3327626277724a565e81604eb40a6a
Signed-off-by: Murat Sezgin <msezgin@codeaurora.org>
diff --git a/nss_ipv4.c b/nss_ipv4.c
index 6984bfa..d6e811f 100644
--- a/nss_ipv4.c
+++ b/nss_ipv4.c
@@ -15,7 +15,7 @@
  */
 
 /*
- * nss_tx_rx_ipv4.c
+ * nss_ipv4.c
  *	NSS IPv4 APIs
  */
 #include <linux/ppp_channel.h>
@@ -115,7 +115,7 @@
 	/*
 	 * Sanity check the message type
 	 */
-	if (ncm->type > NSS_IPV4_MAX_MSG_TYPES) {
+	if (ncm->type >= NSS_IPV4_MAX_MSG_TYPES) {
 		nss_warning("%p: message type out of range: %d", nss_ctx, ncm->type);
 		return;
 	}
@@ -206,7 +206,7 @@
 		return NSS_TX_FAILURE;
 	}
 
-	if (ncm->type > NSS_IPV4_MAX_MSG_TYPES) {
+	if (ncm->type >= NSS_IPV4_MAX_MSG_TYPES) {
 		nss_warning("%p: message type out of range: %d", nss_ctx, ncm->type);
 		return NSS_TX_FAILURE;
 	}