/* Flush all the connection entries in the ip_vs_conn_tab  */
static void ip_vs_conn_flush(void)
/* Flush all the connection entries in the ip_vs_conn_tab  */
static void ip_vs_conn_flush(void)
{
	int idx;
	struct ip_vs_conn *cp;
  flush_again:
	for (idx=0; idx<IP_VS_CONN_TAB_SIZE; idx++) {
		ct_write_lock_bh(idx);
		list_for_each_entry(cp, &ip_vs_conn_tab[idx], c_list) {
			IP_VS_DBG(4, "del connection\n");
			ip_vs_conn_expire_now(cp);
			if (cp->control) {
				IP_VS_DBG(4, "del conn template\n");
				ip_vs_conn_expire_now(cp->control);
			}
		}
		ct_write_unlock_bh(idx);
	}
	if (atomic_read(&ip_vs_conn_count) != 0) {
		schedule();
		goto flush_again;
	}
}