[qca-nss-ecm] Defunct the connections when PCC is loaded/unloaded
Regeneration of a connection causes issues,
when the regeneration process is handled with a packet
coming from the opposite direction of the connection.
This results to send arp requests to an IP address
through wrong interface while re-creating the interface
hierarchy. So, instead of regenerating the connections,
it is safer to defunct all the connections.
Change-Id: Ice6b73d6b0f3149b5eaa8bc816311b22cfe3d610
Signed-off-by: Murat Sezgin <msezgin@codeaurora.org>
diff --git a/ecm_classifier_pcc.c b/ecm_classifier_pcc.c
index 9b60c50..5925dea 100644
--- a/ecm_classifier_pcc.c
+++ b/ecm_classifier_pcc.c
@@ -150,9 +150,9 @@
spin_unlock_bh(&ecm_classifier_pcc_lock);
/*
- * Flag a re-generation of all connections is needed
+ * Destroy all the connections
*/
- ecm_db_regeneration_needed();
+ ecm_db_connection_defunct_all();
return 0;
}
EXPORT_SYMBOL(ecm_classifier_pcc_register);
@@ -189,9 +189,9 @@
module_put(reg->this_module);
/*
- * Flag a re-generation of all connections is needed
+ * Destroy all the connections
*/
- ecm_db_regeneration_needed();
+ ecm_db_connection_defunct_all();
}
EXPORT_SYMBOL(ecm_classifier_pcc_unregister_begin);
@@ -513,9 +513,9 @@
module_put(reg->this_module);
/*
- * Flag a re-generation of all connections is needed
+ * Destroy all the connections
*/
- ecm_db_regeneration_needed();
+ ecm_db_connection_defunct_all();
}
/*