[qca-nss-ecm] Fix link failover support for LAG

- CRs-Fixed: 780454
- Regenerate connections on LAG master in bond link-up notification callback.
- Check return value of heirarchy construct function when called for
  connection regeneration and return false if proper interface heirarchy
  is not constructed. This prevents incorrect/incomplete heirarchies due
  to traffic flow when LAG slave may be in an intermediate state.

Change-Id: I5fddd2fff26f7a2bf54ac0fec34b5738af147505
Signed-off-by: Tushar Mathur <tushar@codeaurora.org>
diff --git a/ecm_interface.h b/ecm_interface.h
index d91d88d..e395685 100644
--- a/ecm_interface.h
+++ b/ecm_interface.h
@@ -1,6 +1,6 @@
 /*
  **************************************************************************
- * Copyright (c) 2014, The Linux Foundation.  All rights reserved.
+ * Copyright (c) 2014,2015 The Linux Foundation.  All rights reserved.
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
  * above copyright notice and this permission notice appear in all copies.
@@ -52,3 +52,4 @@
 void ecm_interface_stats_update(struct ecm_db_connection_instance *ci, uint32_t from_tx_packets, uint32_t from_tx_bytes, uint32_t from_rx_packets, uint32_t from_rx_bytes, uint32_t to_tx_packets, uint32_t to_tx_bytes, uint32_t to_rx_packets, uint32_t to_rx_bytes);
 struct net_device *ecm_interface_dev_find_by_addr(ip_addr_t addr, bool *from_local_addr);
 struct net_device *ecm_interface_get_and_hold_dev_master(struct net_device *dev);
+void ecm_interface_dev_regenerate_connections(struct net_device *dev);