/* Delete all vports and wait for vport delete completions.  */
static void bfa_fcs_fabric_delete(struct bfa_fcs_fabric_s *fabric)
/* Delete all vports and wait for vport delete completions.  */
static void bfa_fcs_fabric_delete(struct bfa_fcs_fabric_s *fabric)
{
	struct bfa_fcs_vport_s *vport;
	struct list_head *qe, *qen;
	list_for_each_safe(qe, qen, &fabric->vport_q) {
		vport = (struct bfa_fcs_vport_s *)qe;
		bfa_fcs_vport_delete(vport);
	}
	bfa_fcs_port_delete(&fabric->bport);
	bfa_wc_wait(&fabric->wc);
}