[qca-nss-ecm] Defunct the connections when netdevice goes down.
Instead of regenerating the connections, defunct them
when the interface goes down.
Change-Id: I9adf682cf2a4793980a48e49ee4e0d70008aca90
Signed-off-by: Murat Sezgin <msezgin@codeaurora.org>
diff --git a/ecm_interface.c b/ecm_interface.c
index a8c9df3..2776b24 100644
--- a/ecm_interface.c
+++ b/ecm_interface.c
@@ -5285,10 +5285,10 @@
if (netif_is_bond_slave(dev)) {
master = ecm_interface_get_and_hold_dev_master(dev);
DEBUG_ASSERT(master, "Expected a master\n");
- ecm_interface_dev_regenerate_connections(master);
+ ecm_interface_dev_defunct_connections(master);
dev_put(master);
} else {
- ecm_interface_dev_regenerate_connections(dev);
+ ecm_interface_dev_defunct_connections(dev);
}
break;