[qca-nss-ecm] Fixing ecm rule defunct for bond slave and vlan over bond.
Change-Id: I41cf39806846fe356949a475b222dc26edc43cc7
Signed-off-by: Suman Ghosh <sumaghos@codeaurora.org>
Signed-off-by: Bhaskar Valaboju <bhaskarv@codeaurora.org>
diff --git a/ecm_interface.c b/ecm_interface.c
index c466b52..b0fca8c 100644
--- a/ecm_interface.c
+++ b/ecm_interface.c
@@ -5164,6 +5164,15 @@
ci_to_nat = ecm_db_iface_connections_nat_to_get_and_ref_first(ii);
/*
+ * Defunct ALL if all the four connection instances are NULL
+ */
+ if (!ci_from && !ci_to && !ci_from_nat && !ci_to_nat) {
+ ecm_db_connection_defunct_all();
+ DEBUG_TRACE("%p: Defunct (ALL) COMPLETE\n", ii);
+ return;
+ }
+
+ /*
* Defunct all connections associated with this interface
*/
DEBUG_TRACE("%p: Defunct 'from' connections\n", ii);